From d6ed1287fa23fa25eacf57c0d83d533cb2f2bc45 Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期日, 10 九月 2023 10:04:34 +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