This commit is contained in:
@@ -45,27 +45,29 @@ export async function addDynamicRoutes() {
|
||||
router.addRoute(NOT_FOUND_ROUTE)
|
||||
|
||||
// 确保根路径重定向到工作台
|
||||
if (!router.hasRoute('Dashboard')) {
|
||||
const workbenchRoute = {
|
||||
name: 'Dashboard',
|
||||
path: '/',
|
||||
component: () => import('@/layout/index.vue'),
|
||||
redirect: '/workbench',
|
||||
children: [
|
||||
{
|
||||
name: 'Workbench',
|
||||
path: 'workbench',
|
||||
component: () => import('@/views/workbench/index.vue'),
|
||||
meta: {
|
||||
title: '工作台',
|
||||
icon: 'mdi:index',
|
||||
order: 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
router.addRoute(workbenchRoute)
|
||||
}
|
||||
// if (!router.hasRoute('workbench')) {
|
||||
// const workbenchRoute = {
|
||||
// name: 'workbench',
|
||||
// path: '/',
|
||||
// component: () => import('@/views/workbench/index.vue'),
|
||||
// redirect: '/workbench',
|
||||
// // children: [
|
||||
// // {
|
||||
// // name: 'Workbench',
|
||||
// // path: 'workbench',
|
||||
// // component: () => import('@/views/workbench/index.vue'),
|
||||
// // meta: {
|
||||
// // title: '工作台',
|
||||
// // icon: 'mdi:index',
|
||||
// // order: 0,
|
||||
// // },
|
||||
// // },
|
||||
// // ],
|
||||
// }
|
||||
// router.addRoute(workbenchRoute)
|
||||
// }
|
||||
|
||||
// console.log(router)
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
throw error
|
||||
|
||||
@@ -58,7 +58,7 @@ function filterAsyncRoutes(routes = [], firstRoute = true) {
|
||||
|
||||
const curRoute = {
|
||||
path: route.route,
|
||||
name: route.name,
|
||||
name: route.route,
|
||||
isHidden,
|
||||
meta,
|
||||
children: [],
|
||||
|
||||
@@ -191,7 +191,7 @@ const columns = ref([
|
||||
{
|
||||
title: '订单号',
|
||||
align: 'center',
|
||||
key: 'oid',
|
||||
key: 'jl_oid',
|
||||
width: 200,
|
||||
fixed: 'left',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user