From 4bbdc1e87bc4df9e7d41b50388364155720c8723 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期日, 15 三月 2020 20:25:58 +0800 Subject: [PATCH] 修复TagsView组件中,鼠标滚轮按下的时候,可以关闭不可关闭的tag --- ruoyi-ui/src/router/index.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index a315049..65557f9 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -27,6 +27,17 @@ // 公共路由 export const constantRoutes = [ { + path: '/redirect', + component: Layout, + hidden: true, + children: [ + { + path: '/redirect/:path(.*)', + component: () => import('@/views/redirect') + } + ] + }, + { path: '/login', component: () => import('@/views/login'), hidden: true @@ -93,8 +104,7 @@ meta: { title: '修改生成配置' } } ] - }, - { path: '*', redirect: '/404', hidden: true } + } ] export default new Router({ -- Gitblit v1.9.2