From 77a21d098f1f5995f02b267a190b4d422aba6d05 Mon Sep 17 00:00:00 2001 From: 严俊东 <1172482914@qq.com> Date: 星期一, 12 七月 2021 11:01:50 +0800 Subject: [PATCH] 图片上传 - 多图时无法删除相应图片修复 --- ruoyi-ui/src/router/index.js | 32 ++++++++++++++++++++++++++++++-- 1 files changed, 30 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 59238d9..7f0b105 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -5,6 +5,8 @@ /* Layout */ import Layout from '@/layout' +import ParentView from '@/components/ParentView'; +import InnerLink from '@/layout/components/InnerLink' /** * Note: 路由配置项 @@ -17,9 +19,9 @@ * redirect: noRedirect // 当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 * name:'router-name' // 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题 * meta : { - roles: ['admin','editor'] // 设置该路由进入的权限,支持多个权限叠加 + noCache: true // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false) title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 - icon: 'svg-name' // 设置该路由的图标,对应路径src/icons/svg + icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 } */ @@ -80,6 +82,32 @@ ] }, { + path: '/auth', + component: Layout, + hidden: true, + children: [ + { + path: 'role/:userId(\\d+)', + component: (resolve) => require(['@/views/system/user/authRole'], resolve), + name: 'AuthRole', + meta: { title: '分配角色'} + } + ] + }, + { + path: '/auth', + component: Layout, + hidden: true, + children: [ + { + path: 'user/:roleId(\\d+)', + component: (resolve) => require(['@/views/system/role/authUser'], resolve), + name: 'AuthUser', + meta: { title: '分配用户'} + } + ] + }, + { path: '/dict', component: Layout, hidden: true, -- Gitblit v1.9.2