Kaynağa Gözat

feat: close club

chen shuai 6 yıl önce
ebeveyn
işleme
0a7b12a8c5

+ 23 - 23
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',
+              },
+            ],
+          },
         ],
       },
       {

+ 1 - 1
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',

+ 1 - 1
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',

+ 1 - 1
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': '拓扑编辑器',

+ 1 - 1
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': '拓撲編輯器',

+ 2 - 0
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 (
     <PageHeaderWrapper

+ 2 - 0
src/pages/Editor/GGEditor/Koni/index.js

@@ -11,6 +11,8 @@ import styles from '../Flow/index.less';
 import { FormattedMessage } from 'umi/locale';
 import PageHeaderWrapper from '@/components/PageHeaderWrapper';
 
+GGEditor.setTrackable(false);
+
 const KoniPage = () => {
   return (
     <PageHeaderWrapper

+ 2 - 0
src/pages/Editor/GGEditor/Mind/index.js

@@ -10,6 +10,8 @@ import styles from '../Flow/index.less';
 import { FormattedMessage } from 'umi/locale';
 import PageHeaderWrapper from '@/components/PageHeaderWrapper';
 
+GGEditor.setTrackable(false);
+
 const MindPage = () => {
   return (
     <PageHeaderWrapper