From 8edf0fc193df875b6e05d77be428e9134438857b Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 16 Aug 2022 19:32:54 +0800
Subject: [PATCH] Default Changelist
---
src/router/route.ts | 189 ++++++++++++++++++++++++-----------------------
1 files changed, 97 insertions(+), 92 deletions(-)
diff --git a/src/router/route.ts b/src/router/route.ts
index 0177847..cbfd47e 100644
--- a/src/router/route.ts
+++ b/src/router/route.ts
@@ -1,102 +1,107 @@
import { RouteRecordRaw } from 'vue-router';
export const dynamicRoutes: Array<RouteRecordRaw> = [
-
- {
- path: '/',
- name: '/',
- component: () => import('/@/layout/index.vue'),
- redirect: '/home',
- meta: {
- isKeepAlive: true,
- },
- children: [
- {
- path: '/home',
- name: 'home',
- component: () => import('/@/views/home/index.vue'),
- meta: {
- title: 'message.router.home',
- isLink: '',
- isHide: false,
- isKeepAlive: true,
- isAffix: true,
- isIframe: false,
- roles: ['admin', 'common'],
- icon: 'iconfont icon-shouye',
- button:'121231'
- },
- },
- ],
- },
+ {
+ path: '/',
+ name: '/',
+ component: () => import('/@/layout/index.vue'),
+ redirect: '/home',
+ meta: {
+ isKeepAlive: false
+ },
+ children: [
+ {
+ path: '/home',
+ name: 'home',
+ component: () => import('/@/views/home/index.vue'),
+ meta: {
+ title: '首页',
+ isLink: '',
+ isHide: false,
+ isKeepAlive: true,
+ isAffix: true,
+ isIframe: false,
+ roles: ['admin', 'common'],
+ icon: 'iconfont icon-shouye'
+ }
+ }
+ ]
+ }
];
-
export const notFoundAndNoPower = [
- {
- path: '/:path(.*)*',
- name: 'notFound',
- component: () => import('/@/views/error/404.vue'),
- meta: {
- title: 'message.staticRoutes.notFound',
- isHide: true,
- },
- },
- {
- path: '/401',
- name: 'noPower',
- component: () => import('/@/views/error/401.vue'),
- meta: {
- title: 'message.staticRoutes.noPower',
- isHide: true,
- },
- },
+ {
+ path: '/:path(.*)*',
+ name: 'notFound',
+ component: () => import('/@/views/error/404.vue'),
+ meta: {
+ title: 'message.staticRoutes.notFound',
+ isHide: true
+ }
+ },
+ {
+ path: '/401',
+ name: 'noPower',
+ component: () => import('/@/views/error/401.vue'),
+ meta: {
+ title: 'message.staticRoutes.noPower',
+ isHide: true
+ }
+ }
];
export const staticRoutes: Array<RouteRecordRaw> = [
- {
- path: '/',
- name: '/',
- component: () => import('/@/layout/index.vue'),
- meta: {
- title: '布局界面',
- },
- children: [
- // 请不要往这里 `children` 中添加内容,此内容为了防止 No match found for location with path "xxx" 问题
- ...notFoundAndNoPower,
- ],
- },
- {
- path: '/login',
- name: 'login',
- component: () => import('/@/views/login/index.vue'),
- meta: {
- title: '登录',
- },
- },
- {
- path: '/dashboard',
- name: 'dashboard',
- component: () => import('/@/views/dashboard/index.vue'),
- meta: {
- title: '系统选择',
- },
- },
-
- {
- path: '/visualizingDemo1',
- name: 'visualizingDemo1',
- component: () => import('/@/views/visualizing/demo1.vue'),
- meta: {
- title: 'message.router.visualizingLinkDemo1',
- },
- },
- {
- path: '/visualizingDemo2',
- name: 'visualizingDemo2',
- component: () => import('/@/views/visualizing/demo2.vue'),
- meta: {
- title: 'message.router.visualizingLinkDemo2',
- },
- },
+ {
+ path: '/',
+ name: '/',
+ component: () => import('/@/layout/index.vue'),
+ meta: {
+ title: '布局界面'
+ },
+ children: [
+ // 请不要往这里 `children` 中添加内容,此内容为了防止 No match found for location with path "xxx" 问题
+ ...notFoundAndNoPower
+ ]
+ },
+ {
+ path: '/login',
+ name: 'login',
+ component: () => import('/@/views/loginPage/loginPage.vue'),
+ meta: {
+ title: '登录'
+ }
+ },
+ {
+ path: '/newMenu',
+ name: 'newMenu',
+ component: () => import('/@/views/newHome/index.vue'),
+ meta: {
+ title: '首页',
+ isKeepAlive: false
+ }
+ },
+ {
+ path: '/intelligentMap',
+ name: 'intelligentMap',
+ component: () => import('/@/views/intellectInspect/intelligentMap/index.vue'),
+ meta: {
+ title: '巡检路线'
+ }
+ },
+ {
+ path: '/intelligentLine',
+ name: 'intelligentMap',
+ component: () => import('/@/views/intellectInspect/intelligentLine/index.vue'),
+ meta: {
+ title: '巡检路线'
+ }
+ },
+ {
+ path: '/dpIndex',
+ name: 'dpIndex',
+ component: () => import('/@/views/doublePrevent/dpIndex/index.vue'),
+ meta: {
+ title: '双重预防首页'
+ }
+ }
];
--
Gitblit v1.9.2