- {formatMessage({ id: 'component.plugin.pluginTemplate.tips1' })}
- {formatMessage({ id: 'component.plugin.pluginTemplate.tips2' })}
+ {formatMessage({ id: 'component.plugin.pluginTemplate.tip1' })}
+ {formatMessage({ id: 'component.plugin.pluginTemplate.tip2' })}
>} type="info" />
>
)}
diff --git a/web/src/components/Plugin/locales/en-US.ts b/web/src/components/Plugin/locales/en-US.ts
index 56fbd480c0..f70e668ca8 100644
--- a/web/src/components/Plugin/locales/en-US.ts
+++ b/web/src/components/Plugin/locales/en-US.ts
@@ -17,8 +17,8 @@
export default {
'component.plugin.tip1': 'NOTE: After customizing the plugin, you need to update schema.json.',
'component.plugin.tip2': 'How to update?',
- 'component.select.pluginTemplate': 'Select PluginTemplate',
+ 'component.select.pluginTemplate': 'Select a plugin template',
'component.step.select.pluginTemplate.select.option': 'Custom',
- 'component.plugin.pluginTemplate.tips1': '1.When a route already have plugins field configured, the plugins in the plugin template will be merged into it.',
- 'component.plugin.pluginTemplate.tips2': '2.The same plugin in the plugin template will override one in the plugins'
+ 'component.plugin.pluginTemplate.tip1': '1. When a route already have plugins field configured, the plugins in the plugin template will be merged into it.',
+ 'component.plugin.pluginTemplate.tip2': '2. The same plugin in the plugin template will override one in the plugins'
};
diff --git a/web/src/components/Plugin/locales/zh-CN.ts b/web/src/components/Plugin/locales/zh-CN.ts
index 425d211145..afc85c13db 100644
--- a/web/src/components/Plugin/locales/zh-CN.ts
+++ b/web/src/components/Plugin/locales/zh-CN.ts
@@ -19,6 +19,6 @@ export default {
'component.plugin.tip2': '如何更新?',
"component.select.pluginTemplate": '选择插件模板',
'component.step.select.pluginTemplate.select.option': '手动配置',
- 'component.plugin.pluginTemplate.tips1': '1.如果这个路由已经配置了插件,那么插件模板里面的插件配置会合并进去。',
- 'component.plugin.pluginTemplate.tips2': '2.插件模板相同的插件会覆盖掉原有的插件。'
+ 'component.plugin.pluginTemplate.tip1': '1. 若路由已配置插件,则插件模板数据将与已配置的插件数据合并。',
+ 'component.plugin.pluginTemplate.tip2': '2. 插件模板相同的插件会覆盖掉原有的插件。'
};
diff --git a/web/src/pages/PluginTemplate/Create.tsx b/web/src/pages/PluginTemplate/Create.tsx
index 9ebc25af3f..3da8cb1b12 100644
--- a/web/src/pages/PluginTemplate/Create.tsx
+++ b/web/src/pages/PluginTemplate/Create.tsx
@@ -21,11 +21,11 @@ import { history, useIntl } from 'umi';
import ActionBar from '@/components/ActionBar';
import PluginPage from '@/components/Plugin';
+import { transformLableValueToKeyValue } from '@/helpers';
import Step1 from './components/Step1';
import Preview from './components/Preview';
import { fetchItem, create, update, } from './service';
-import { transformLableValueToKeyValue } from '@/helpers';
const Page: React.FC = (props) => {
const [step, setStep] = useState(1);
@@ -66,7 +66,7 @@ const Page: React.FC = (props) => {
id: 'component.status.success',
})}`,
});
- history.push('/pluginTemplate/list');
+ history.push('/plugin-template/list');
})
.catch(() => {
setStep(3);
diff --git a/web/src/pages/PluginTemplate/List.tsx b/web/src/pages/PluginTemplate/List.tsx
index aec568c092..29535176c2 100644
--- a/web/src/pages/PluginTemplate/List.tsx
+++ b/web/src/pages/PluginTemplate/List.tsx
@@ -104,7 +104,7 @@ const Page: React.FC = () => {