Переглянути джерело

解决与沈波的路由冲突

master
海洋无痕 3 роки тому
джерело
коміт
d5f0d77350

+ 11
- 11
src/data/menuData.ts Переглянути файл

@@ -10,13 +10,13 @@ order?:number; 菜单排序。
frameUrl?:string; 嵌套外链。
*/
export const list = [
{
title: '售后服务',
path: 'home', //对应name名称
icon: 'one',
auth: true,
order: 1,
children: [
// {
// title: '售后服务',
// path: 'home', //对应name名称
// icon: 'one',
// auth: true,
// order: 1,
// children: [
{
title: '基础信息查询服务',
path: 'home1',
@@ -44,11 +44,11 @@ export const list = [
},
{
title: '通行流水查询服务',
path: 'home1',
path: 'trafficFlow',
children: []
}, {
title: '黑名单查询服务',
path: 'home1',
path: 'blacklistQuery',
children: []
}, {
title: '卡签售后服务',
@@ -119,6 +119,6 @@ export const list = [
}]
}]
}
]
}
// ]
// }
];

+ 17
- 2
src/router/index.ts Переглянути файл

@@ -2,6 +2,7 @@ import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Cookies from 'js-cookie'

const routes: RouteRecordRaw[] = [

{
path: '/',
name: 'Login',
@@ -28,7 +29,7 @@ const routes: RouteRecordRaw[] = [
components: {
key: () => import('@/views/system/menu/index.vue'),
},
},
},
{
path: '/views/dengmingcong/index',
name: 'home1',
@@ -100,10 +101,24 @@ const routes: RouteRecordRaw[] = [
components: {
key: () => import('@/views/fancongcong/corporateaccountManage/corporateaccountManage.vue'),
},
},
{
path: '/views/shengbo/blacklistQuery/blacklistQuery',
name: 'blacklistQuery',
meta: { title: '菜单模块', isAuth: true }, //黑名单查询服务
components: {
key: () => import('@/views/shengbo/blacklistQuery/blacklistQuery.vue'),
},
}, {
path: '/views/shengbo/trafficFlow/trafficFlow',
name: 'trafficFlow',
meta: { title: '菜单模块', isAuth: true }, //通行流水查询服务
components: {
key: () => import('@/views/shengbo/trafficFlow/trafficFlow.vue'),
},
}
],
}
]

const router = createRouter({
history: createWebHashHistory(), //createWebHistory createWebHashHistory(带#号) 路由模式

+ 7
- 0
src/views/shengbo/blacklistQuery/blacklistQuery.vue Переглянути файл

@@ -0,0 +1,7 @@
<template>
blacklistQuery
</template>

<script lang="ts" setup>
</script>

+ 7
- 0
src/views/shengbo/trafficFlow/trafficFlow.vue Переглянути файл

@@ -0,0 +1,7 @@
<template>
trafficFlow
</template>

<script lang="ts" setup>
</script>

+ 1979
- 2245
yarn.lock
Різницю між файлами не показано, бо вона завелика
Переглянути файл


Завантаження…
Відмінити
Зберегти