From a63543a5c793c8954fa2f9da0ee4fb215c62d8c2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 20 五月 2024 10:26:46 +0800 Subject: [PATCH] !118 ♥️发布 5.2.0-BETA 公测版本 Merge pull request !118 from 疯狂的狮子Li/dev --- src/router/index.ts | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 271385c..2343685 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createWebHistory, createRouter, RouteOption } from 'vue-router'; +import { createWebHistory, createRouter, RouteRecordRaw } from 'vue-router'; /* Layout */ import Layout from '@/layout/index.vue'; @@ -25,7 +25,7 @@ */ // 鍏叡璺敱 -export const constantRoutes: RouteOption[] = [ +export const constantRoutes: RouteRecordRaw[] = [ { path: '/redirect', component: Layout, @@ -92,7 +92,7 @@ ]; // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 -export const dynamicRoutes: RouteOption[] = [ +export const dynamicRoutes: RouteRecordRaw[] = [ { path: '/system/user-auth', component: Layout, @@ -162,6 +162,20 @@ meta: { title: '淇敼鐢熸垚閰嶇疆', activeMenu: '/tool/gen', icon: '' } } ] + }, + { + path: '/demo/leaveEdit', + component: Layout, + hidden: true, + permissions: ['demo:leave:edit'], + children: [ + { + path: 'index', + component: () => import('@/views/workflow/leave/leaveEdit.vue'), + name: 'leaveEdit', + meta: { title: '璇峰亣鐢宠', activeMenu: '/demo/leave', noCache: true } + } + ] } ]; -- Gitblit v1.9.3