feat: 前端优化
This commit is contained in:
@@ -66,6 +66,11 @@ const routes = [
|
||||
children: [
|
||||
{ path: '', redirect: '/system/style-settings' },
|
||||
{ path: 'style-settings', name: '风格设置', component: () => import('../views/system/StyleSettings.vue') },
|
||||
{
|
||||
path: 'task-management/:type',
|
||||
name: '任务中心',
|
||||
component: () => import('../views/system/task-management/layout/TaskLayout.vue')
|
||||
}
|
||||
],
|
||||
meta: {
|
||||
requiresAuth: true
|
||||
@@ -81,6 +86,11 @@ const routes = [
|
||||
requiresAuth: true
|
||||
}
|
||||
},
|
||||
// 向后兼容:重定向旧路径到新路径
|
||||
{
|
||||
path: '/material/mix-task',
|
||||
redirect: '/system/task-management/mix-task'
|
||||
}
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user