From cc43247a5e03bdfcc41c3e4c6038f78f673f3186 Mon Sep 17 00:00:00 2001
From: wang <3597712270@qq.com>
Date: 星期三, 15 五月 2024 11:51:34 +0800
Subject: [PATCH] 上片机新增下拉选,保存按钮,状态接口
---
UI-Project/src/router/index.js | 82 ++++++++++++++++++++++++++++++-----------
1 files changed, 60 insertions(+), 22 deletions(-)
diff --git a/UI-Project/src/router/index.js b/UI-Project/src/router/index.js
index 8ca7249..ca1f7a8 100644
--- a/UI-Project/src/router/index.js
+++ b/UI-Project/src/router/index.js
@@ -1,8 +1,7 @@
-import { createRouter, createWebHistory } from 'vue-router'
-import HomeView from '../views/HomeView.vue'
-
+import {createRouter, createWebHashHistory} from 'vue-router'
+
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHashHistory(),
routes: [
{
path: '/',
@@ -35,19 +34,29 @@
]
},
-/*----------- 鐢ㄦ埛鍒楄〃 ----------------*/
-// {
-// path: 'User',
-// name: 'User',
-// component: () => import('../views/User/userlist.vue'),
-// children:[
-// {
-// path: '/User/userlist',
-// name: 'userlist',
-// component: () => import('../views/User/userlist.vue')
-// },
-// ]
-// },
+/*----------- 绯荤粺绠$悊 ----------------*/
+{
+ path: 'User',
+ name: 'user',
+ component: () => import('../views/user/user.vue'),
+ children:[
+ {
+ path: '/User/userlist',
+ name: 'userlist',
+ component: () => import('../views/User/userlist.vue')
+ },
+ {
+ path: '/User/permissions',
+ name: 'permissions',
+ component: () => import('../views/User/permissions.vue')
+ },
+ {
+ path: '/User/rolelist',
+ name: 'rolelist',
+ component: () => import('../views/User/rolelist.vue')
+ },
+ ]
+},
/*----------- 鏉冮檺鍒楄〃 ----------------*/
// {
@@ -95,9 +104,14 @@
component: () => import('../views/Caching/caching.vue'),
children:[
{
- path: '/Caching/caching',
- name: 'caching',
- component: () => import('../views/Caching/caching.vue')
+ path: '/Caching/cachingbefore',
+ name: 'cachingbefore',
+ component: () => import('../views/Caching/cachingbefore.vue')
+ },
+ {
+ path: '/Caching/cachingun',
+ name: 'cachingun',
+ component: () => import('../views/Caching/cachingun.vue')
},
]
},
@@ -173,6 +187,30 @@
}
]
},
+
+ /*----------- 鍙鍖栫郴缁� ----------------*/
+ {
+ path: 'Visualization',
+ name: 'screen',
+ component: () => import('../views/Visualization/screen.vue'),
+ children:[
+ {
+ path: '/Visualization/screenone',
+ name: 'screenone',
+ component: () => import('../views/Visualization/screenone.vue')
+ },
+ {
+ path: '/Visualization/screentwo',
+ name: 'screentwo',
+ component: () => import('../views/Visualization/screentwo.vue')
+ },
+ {
+ path: '/Visualization/screenthree',
+ name: 'screenthree',
+ component: () => import('../views/Visualization/screenthree.vue')
+ }
+ ]
+ },
{
path: '',
redirect:'/Slicecage/slicecage'
@@ -187,5 +225,5 @@
]
})
-
-export default router
+
+export default router
\ No newline at end of file
--
Gitblit v1.8.0