diff --git a/build/vite/index.ts b/build/vite/index.ts index 50c51d03..ed884e0c 100644 --- a/build/vite/index.ts +++ b/build/vite/index.ts @@ -97,7 +97,7 @@ export function createVitePlugins() { deleteOriginFile: false //压缩后是否删除源文件 }), ViteEjsPlugin(), - topLevelAwait({ + topLevelAwait({ // https://juejin.cn/post/7152191742513512485 // The export name of top-level await promise for each chunk module promiseExportName: '__tla', // The function to generate import names of top-level await promise in each chunk module diff --git a/package.json b/package.json index 8080e5a3..8fd1a0eb 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "build:dev": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev", "build:test": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test", "build:static": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode static", + "build:front": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode front", "serve:pro": "vite preview --mode pro", "serve:dev": "vite preview --mode dev", "serve:test": "vite preview --mode test", diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 7c22f95f..e8554292 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -317,18 +317,6 @@ const remainingRouter: AppRouteRecordRaw[] = [ title: '查看 OA 请假', activeMenu: 'bpm/oa/leave/detail' } - }, - { - path: '/bpm/task/done', - component: () => import('@/views/bpm/task/done/index.vue'), - name: 'TaskDone', - meta: { - noCache: true, - hidden: true, - canTo: true, - title: '已办任务', - activeMenu: 'bpm/task/done/index' - } } ] },