From 7a92dcd328dcc23577b20a366ed6db660c15e325 Mon Sep 17 00:00:00 2001 From: chen shuai Date: Fri, 22 Mar 2019 14:33:04 +0800 Subject: [PATCH] fix : fix menu error --- .eslintrc.js | 2 +- config/router.config.js | 42 ++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 10309cef..5a1d3666 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,6 +34,6 @@ module.exports = { 'linebreak-style': 0, }, settings: { - polyfills: ['fetch', 'promises', 'url'], + polyfills: ['fetch', 'Promise', 'url', 'object-assign'], }, }; diff --git a/config/router.config.js b/config/router.config.js index 2bc602e8..e954ced9 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -265,28 +265,28 @@ export default [ }, ], }, - // editor + ], + }, + // editor + { + name: 'editor', + icon: 'highlight', + path: '/editor', + routes: [ { - 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', - }, - ], + 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', }, ], }, -- GitLab