mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-08-12 00:51:52 +08:00
Merge branch 'gitee-master' into feature-project
# Conflicts: # .env.local # src/components/UploadFile/src/useUpload.ts # src/router/modules/remaining.ts # src/utils/dict.ts
This commit is contained in:
@@ -5,7 +5,7 @@ import remainingRouter from './modules/remaining'
|
||||
|
||||
// 创建路由实例
|
||||
const router = createRouter({
|
||||
history: createWebHistory(), // createWebHashHistory URL带#,createWebHistory URL不带#
|
||||
history: createWebHistory(import.meta.env.VITE_BASE_PATH), // createWebHashHistory URL带#,createWebHistory URL不带#
|
||||
strict: true,
|
||||
routes: remainingRouter as RouteRecordRaw[],
|
||||
scrollBehavior: () => ({ left: 0, top: 0 })
|
||||
|
@@ -70,26 +70,6 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/ai/music',
|
||||
// component: Layout,
|
||||
// redirect: '/index',
|
||||
// name: 'AIMusic',
|
||||
// meta: {},
|
||||
// children: [
|
||||
// {
|
||||
// path: 'index',
|
||||
// component: () => import('@/views/ai/music/components/index.vue'),
|
||||
// name: 'AIMusicIndex',
|
||||
// meta: {
|
||||
// title: 'AI 音乐',
|
||||
// icon: 'ep:home-filled',
|
||||
// noCache: false,
|
||||
// affix: true
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/user',
|
||||
component: Layout,
|
||||
@@ -312,6 +292,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
},
|
||||
{
|
||||
path: 'process-instance/detail',
|
||||
// component: () => import('@/views/bpm/processInstance/detail/index_new.vue'), // TODO 芋艿:新审批界面,已适配 simple 模式,未来会适配 bpmn 模式
|
||||
component: () => import('@/views/bpm/processInstance/detail/index.vue'),
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
meta: {
|
||||
@@ -320,7 +301,12 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
canTo: true,
|
||||
title: '流程详情',
|
||||
activeMenu: '/bpm/task/my'
|
||||
}
|
||||
},
|
||||
props: (route) => ({
|
||||
id: route.query.id,
|
||||
taskId: route.query.taskId,
|
||||
activityId: route.query.activityId
|
||||
})
|
||||
},
|
||||
{
|
||||
path: 'oa/leave/create',
|
||||
@@ -361,7 +347,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
component: () => import('@/views/mall/product/spu/form/index.vue'),
|
||||
name: 'ProductSpuAdd',
|
||||
meta: {
|
||||
noCache: true,
|
||||
noCache: false, // 需要缓存
|
||||
hidden: true,
|
||||
canTo: true,
|
||||
icon: 'ep:edit',
|
||||
@@ -594,6 +580,68 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/ai',
|
||||
component: Layout,
|
||||
name: 'Ai',
|
||||
meta: {
|
||||
hidden: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'image/square',
|
||||
component: () => import('@/views/ai/image/square/index.vue'),
|
||||
name: 'AiImageSquare',
|
||||
meta: {
|
||||
title: '绘图作品',
|
||||
icon: 'ep:home-filled',
|
||||
noCache: false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
component: () => import('@/views/Error/404.vue'),
|
||||
name: '',
|
||||
meta: {
|
||||
title: '404',
|
||||
hidden: true,
|
||||
breadcrumb: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/iot',
|
||||
component: Layout,
|
||||
name: 'IOT',
|
||||
meta: {
|
||||
hidden: true
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'product/detail/:id',
|
||||
name: 'IoTProductDetail',
|
||||
meta: {
|
||||
title: '产品详情',
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
activeMenu: '/iot/product'
|
||||
},
|
||||
component: () => import('@/views/iot/product/detail/index.vue')
|
||||
},
|
||||
{
|
||||
path: 'device/detail/:id',
|
||||
name: 'IoTDeviceDetail',
|
||||
meta: {
|
||||
title: '设备详情',
|
||||
noCache: true,
|
||||
hidden: true,
|
||||
activeMenu: '/iot/device'
|
||||
},
|
||||
component: () => import('@/views/iot/device/detail/index.vue')
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/pms',
|
||||
component: Layout,
|
||||
|
Reference in New Issue
Block a user