diff --git a/config/router.config.js b/config/router.config.js index 32e8172c434d8b099cc4e0d5c82bc1fd0d99d905..2bc602e835c1c93411847769d1ed1eb316a298be 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -93,29 +93,6 @@ export default [ }, ], }, - // editor - { - name: 'editor', - icon: 'highlight', - path: '/editor', - routes: [ - { - path: '/editor/flow', - name: 'flow', - component: './Editor/GGEditor/Flow', - }, - { - path: '/editor/mind', - name: 'mind', - component: './Editor/GGEditor/Mind', - }, - { - path: '/editor/koni', - name: 'koni', - component: './Editor/GGEditor/Koni', - }, - ], - }, // list { path: '/list', @@ -288,6 +265,29 @@ export default [ }, ], }, + // editor + { + name: 'editor', + icon: 'highlight', + path: '/editor', + routes: [ + { + path: '/editor/flow', + name: 'flow', + component: './Editor/GGEditor/Flow', + }, + { + path: '/editor/mind', + name: 'mind', + component: './Editor/GGEditor/Mind', + }, + { + path: '/editor/koni', + name: 'koni', + component: './Editor/GGEditor/Koni', + }, + ], + }, ], }, { diff --git a/src/locales/en-US/menu.js b/src/locales/en-US/menu.js index 1d67346615bab48507fc7f4e3e08b06dd83802c4..25805ead5e598de6c1539b1dafa70b1079f877af 100644 --- a/src/locales/en-US/menu.js +++ b/src/locales/en-US/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': 'Account Settings', 'menu.account.trigger': 'Trigger Error', 'menu.account.logout': 'Logout', - 'menu.editor': 'Editor', + 'menu.editor': 'Graphic Editor', 'menu.editor.flow': 'Flow Editor', 'menu.editor.mind': 'Mind Editor', 'menu.editor.koni': 'Koni Editor', diff --git a/src/locales/pt-BR/menu.js b/src/locales/pt-BR/menu.js index ee82fb1edf10037cbaa50085b020e7c22f77ce0a..994f73cd10dd597a89ea29c5e7703f170c1a9da0 100644 --- a/src/locales/pt-BR/menu.js +++ b/src/locales/pt-BR/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': 'Configurar Conta', 'menu.account.trigger': 'Disparar Erro', 'menu.account.logout': 'Sair', - 'menu.editor': 'Editor', + 'menu.editor': 'Graphic Editor', 'menu.editor.flow': 'Flow Editor', 'menu.editor.mind': 'Mind Editor', 'menu.editor.koni': 'Koni Editor', diff --git a/src/locales/zh-CN/menu.js b/src/locales/zh-CN/menu.js index 0fb0069ea157d79190c94ae0c3468f27e9302167..c057bb2a9c0e9d1bbf7b0c484207ab0d6e79bea4 100644 --- a/src/locales/zh-CN/menu.js +++ b/src/locales/zh-CN/menu.js @@ -38,7 +38,7 @@ export default { 'menu.account.settings': '个人设置', 'menu.account.trigger': '触发报错', 'menu.account.logout': '退出登录', - 'menu.editor': '编辑页', + 'menu.editor': '图形编辑器', 'menu.editor.flow': '流程编辑器', 'menu.editor.mind': '脑图编辑器', 'menu.editor.koni': '拓扑编辑器', diff --git a/src/locales/zh-TW/menu.js b/src/locales/zh-TW/menu.js index 2cf5f9dac27a23cb1714b808de2808831eca3069..2b1a49ea4b15647700bfb26f3c1680fefe890f9c 100644 --- a/src/locales/zh-TW/menu.js +++ b/src/locales/zh-TW/menu.js @@ -38,7 +38,7 @@ export default { 'menu.exception.not-find': '404', 'menu.exception.server-error': '500', 'menu.exception.trigger': '触发错误', - 'menu.editor': '編輯頁', + 'menu.editor': '圖形編輯器', 'menu.editor.flow': '流程編輯器', 'menu.editor.mind': '腦圖編輯器', 'menu.editor.koni': '拓撲編輯器', diff --git a/src/pages/Editor/GGEditor/Flow/index.js b/src/pages/Editor/GGEditor/Flow/index.js index 6acac054a774a1b3f75d6ad8bc3e244534409c76..4dc19867d664434f125053874fd87f252df2a54a 100644 --- a/src/pages/Editor/GGEditor/Flow/index.js +++ b/src/pages/Editor/GGEditor/Flow/index.js @@ -10,6 +10,8 @@ import styles from './index.less'; import { FormattedMessage } from 'umi/locale'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; +GGEditor.setTrackable(false); + const FlowPage = () => { return ( { return ( { return (