From 3d00cca282cb9d64f13f30aa9850b874f3245816 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 02 Dec 2024 17:00:41 +0800
Subject: [PATCH] 路由调整
---
src/router/index.js | 48 ++++++++++++++++++++++++++++--------------------
1 files changed, 28 insertions(+), 20 deletions(-)
diff --git a/src/router/index.js b/src/router/index.js
index 964e37e..2ed7d21 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 16:35:31
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-26 20:14:39
+ * @LastEditTime: 2024-11-27 20:30:40
* @FilePath: \bigScreen\src\router\index.js
* @Description:
*
@@ -12,6 +12,8 @@
const layout = () => import("@/pages/layout/index.vue")
const firstLayout = () => import('@/pages/first/index.vue')
const subLayout = () => import('@/pages/sub/index.vue')
+const mapLayout = () => import('@/pages/map/index.vue')
+const singleLayout = () => import('@/pages/single/index.vue')
const companyInfo = () => import('@/views/companyInfo/index.vue')
const routes = [
// {
@@ -36,14 +38,13 @@
{
path: '/layout',
name: 'layout',
- redirect: '/layout/first/survey',
+ redirect: '/layout/map/survey',
component: layout,
children: [
{
- path: 'first',
- name: 'first',
- component: firstLayout,
- redirect: '/layout/first/survey',
+ path: 'map',
+ name: 'map',
+ component: mapLayout,
children: [
{
path: 'survey',
@@ -67,13 +68,6 @@
component: () => import('@/views/space/index.vue')
},
{
- path: 'supplies',
- meta: {
- title: '应急物资'
- },
- component: () => import('@/views/supplies/index.vue')
- },
- {
path: 'pac',
meta: {
title: '三级防控'
@@ -81,19 +75,33 @@
component: () => import('@/views/pac/index.vue')
},
{
- path: 'rt',
- meta: {
- title: '救援队伍'
- },
- component: () => import('@/views/rt/index.vue')
- },
- {
path: 'pd',
meta: {
title: '突发事件模拟'
},
component: () => import('@/views/pd/index.vue')
},
+ ]
+ },
+ {
+ path: 'single',
+ name: 'single',
+ component: singleLayout,
+ children: [
+ {
+ path: 'supplies',
+ meta: {
+ title: '应急物资'
+ },
+ component: () => import('@/views/supplies/index.vue')
+ },
+ {
+ path: 'rt',
+ meta: {
+ title: '救援队伍'
+ },
+ component: () => import('@/views/rt/index.vue')
+ },
{
path: 'ochart',
meta: {
--
Gitblit v1.9.3