From 01adce6d9fc82f29cc2a29b35ee727b642284715 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期一, 31 七月 2023 17:52:11 +0800 Subject: [PATCH] 隐私、财产的修改 --- src/router/index.js | 54 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7a291fb..51e65c4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,11 +1,11 @@ import Vue from 'vue' import Router from 'vue-router' - + Vue.use(Router) - + /* Layout */ import Layout from '@/layout' - + /** * Note: 璺敱閰嶇疆椤� * @@ -27,7 +27,7 @@ activeMenu: '/system/user' // 褰撹矾鐢辫缃簡璇ュ睘鎬э紝鍒欎細楂樹寒鐩稿搴旂殑渚ц竟鏍忋�� } */ - + // 鍏叡璺敱 export const constantRoutes = [ { @@ -77,7 +77,7 @@ name: 'Index', meta: { title: '棣栭〉', icon: 'dashboard', affix: true } } - + ] }, { @@ -95,7 +95,7 @@ ] } ] - + // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 export const dynamicRoutes = [ { @@ -116,13 +116,47 @@ path: '/family/note1', component: Layout, permissions: ['family:note:list'], - + hidden: true, children: [ { path: 'propertyInfo/:id(\\d+)', component: () => import('@/views/note/propertyInfo'), name: 'propertyInfo', + meta: { title: '鏌ヨ璇︽儏'} + } + ] + }, + + //涓汉 + + { + path: '/self/self1', + component: Layout, + permissions: ['self:self:list'], + + hidden: true, + children: [ + { + path: 'propertyInfo/:id(\\d+)', + component: () => import('@/views/note/propertyInfo'), + name: 'propertyInfo', + meta: { title: '鏌ヨ璇︽儏'} + } + ] + }, +//瀹跺ぇ浜嬭鐨勮鎯� + { + path: '/family1/bignote', + component: Layout, + // permissions: [], + permissions: ['family1:bignote:list'], + hidden: true, + children: [ + { + path: 'familyeventInfo/:id(\\d+)', + component: () => import('@/views/bignote/familyeventInfo'), + name: 'familyeventInfo', meta: { title: '鏌ヨ璇︽儏'} } ] @@ -184,15 +218,15 @@ ] } ] - + // 闃叉杩炵画鐐瑰嚮澶氭璺敱鎶ラ敊 let routerPush = Router.prototype.push; Router.prototype.push = function push(location) { return routerPush.call(this, location).catch(err => err) } - + export default new Router({ mode: 'history', // 鍘绘帀url涓殑# scrollBehavior: () => ({ y: 0 }), routes: constantRoutes -}) +}) \ No newline at end of file -- Gitblit v1.9.1