From 5d793cde19977cc013e54934e8adba0f126b1555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Fri, 28 Jan 2022 12:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=96=B0=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/TagsView/index.vue | 8 +++--- magic-boot-ui/src/router/index.js | 16 +++++++++-- magic-boot-ui/src/views/quartz/index.vue | 28 ------------------- magic-boot-ui/src/views/redirect/index.vue | 13 +++++++++ 4 files changed, 30 insertions(+), 35 deletions(-) delete mode 100644 magic-boot-ui/src/views/quartz/index.vue create mode 100644 magic-boot-ui/src/views/redirect/index.vue diff --git a/magic-boot-ui/src/layout/components/TagsView/index.vue b/magic-boot-ui/src/layout/components/TagsView/index.vue index d2a56e7..1d93667 100644 --- a/magic-boot-ui/src/layout/components/TagsView/index.vue +++ b/magic-boot-ui/src/layout/components/TagsView/index.vue @@ -17,10 +17,10 @@
diff --git a/magic-boot-ui/src/router/index.js b/magic-boot-ui/src/router/index.js index 797b387..b40c04b 100644 --- a/magic-boot-ui/src/router/index.js +++ b/magic-boot-ui/src/router/index.js @@ -7,16 +7,26 @@ Vue.use(Router) import Layout from '@/layout' export const constantRoutes = [ - + { + path: '/redirect', + component: Layout, + hidden: true, + children: [ + { + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect/index') + } + ] + }, { path: '/', component: Layout, redirect: '/dashboard', children: [{ path: 'dashboard', - name: 'Dashboard', + name: '首页', component: () => import('@/views/dashboard/index'), - meta: { title: '首页', icon: 'home', noCache: false } + meta: { title: '首页', icon: 'home', noCache: false, affix: true } }] }, diff --git a/magic-boot-ui/src/views/quartz/index.vue b/magic-boot-ui/src/views/quartz/index.vue deleted file mode 100644 index a6cbff7..0000000 --- a/magic-boot-ui/src/views/quartz/index.vue +++ /dev/null @@ -1,28 +0,0 @@ - -