From 480ffc6aa9097b951a4a99309b449ba9464d24ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Tue, 2 Sep 2025 14:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=EF=BC=8C=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1=E6=B7=BB=E5=8A=A0base=E5=8C=85?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 4 +- src/router/index.js | 115 +++++++++++++++++--------- src/views/error/401.vue | 2 +- src/views/goods/goodsManage/index.vue | 6 +- src/views/goods/goodsReview/index.vue | 4 +- src/views/login copy.vue | 2 +- src/views/login.vue | 2 +- src/views/monitor/job/index.vue | 2 +- src/views/order/cancelled.vue | 6 +- src/views/order/completed.vue | 6 +- src/views/order/obligation.vue | 6 +- src/views/order/receivedGoods.vue | 6 +- src/views/order/refunded.vue | 6 +- src/views/order/salesService.vue | 6 +- src/views/order/sendGoods.vue | 10 +-- src/views/order/shipped.vue | 8 +- src/views/register.vue | 4 +- src/views/system/dict/index.vue | 2 +- vite.config.js | 2 +- 19 files changed, 118 insertions(+), 81 deletions(-) diff --git a/.env.test b/.env.test index 3f0907a..af1dd4d 100644 --- a/.env.test +++ b/.env.test @@ -5,8 +5,8 @@ VITE_APP_TITLE = 运营云后台管理系统 VITE_APP_ENV = 'production' # 测试环境 -VITE_APP_BASE_API = 'http://192.168.18.99:8080' -VITE_APP_PLATFORM = 'http://192.168.18.99/platform' +VITE_APP_BASE_API = 'http://192.168.18.88:8080' +VITE_APP_PLATFORM = 'http://192.168.18.88/platform' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 1821259..9922530 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -63,6 +63,42 @@ export const constantRoutes = [ component: () => import("@/components/icons"), hidden: true, }, + { + path: '/sub-operation-admin/goodsManage', + component: Layout, + hidden: true, + redirect: 'noredirect', + children: [ + { + path: 'addGoods/:activeTab?', + component: () => import('@/views/goods/goodsManage/addGoods'), + name: 'addGoods', + meta: { title: '新增商品', icon: '' } + }, + { + path: 'editGoods/:activeTab?', + component: () => import('@/views/goods/goodsManage/editGoods'), + name: 'editGoods', + meta: { title: '编辑商品', icon: '' } + }, + { + path: 'seeDetails/:activeTab?', + component: () => import('@/views/goods/goodsManage/seeDetails'), + name: 'seeDetails', + meta: { title: '商品详情', icon: '' } + }, + { + path: 'auditGoods/:activeTab?', + component: () => import('@/views/goods/goodsReview/auditGoods'), + name: 'auditGoods', + meta: { + title: "商品审核", + icon: "", + }, + }, + ] + }, + { path: '/sub-operation-admin', component: Layout, @@ -76,41 +112,6 @@ export const constantRoutes = [ } ] }, - { - path: '/sub-operation-admin/goods', - component: Layout, - hidden: true, - redirect: 'noredirect', - children: [ - { - path: 'goodsManage/addGoods/:activeTab?', - component: () => import('@/views/goods/goodsManage/addGoods'), - name: 'addGoods', - meta: { title: '新增商品', icon: '' } - }, - { - path: 'goodsManage/editGoods/:activeTab?', - component: () => import('@/views/goods/goodsManage/editGoods'), - name: 'editGoods', - meta: { title: '编辑商品', icon: '' } - }, - { - path: 'goodsManage/seeDetails/:activeTab?', - component: () => import('@/views/goods/goodsManage/seeDetails'), - name: 'seeDetails', - meta: { title: '商品详情', icon: '' } - }, - { - path: 'goodsReview/auditGoods/:activeTab?', - component: () => import('@/views/goods/goodsReview/auditGoods'), - name: 'auditGoods', - meta: { - title: "商品审核", - icon: "", - }, - }, - ] - }, { path: '/sub-operation-admin/order', component: Layout, @@ -143,10 +144,10 @@ export const constantRoutes = [ path: '/sub-operation-admin/user', component: Layout, hidden: true, - redirect: '/sub-operation-admin/user/profile', + redirect: 'noredirect', children: [ { - path: 'profile/:activeTab?', + path: '', component: () => import('@/views/system/user/profile/index'), name: 'Profile', meta: { title: '个人中心', icon: 'user' } @@ -194,12 +195,12 @@ export const constantRoutes = [ ], }, { - path: '/sub-operation-admin/goods', + path: '/sub-operation-admin/goodsManage', name: "goods", component: Layout, hidden: false, alwaysShow: true, - redirect: 'noredirect', + redirect: '/sub-operation-admin/goodsManage', meta: { icon: "example", link: null, @@ -218,6 +219,29 @@ export const constantRoutes = [ noCache: false, link: null, }, + // children: [ + // { + // path: 'addGoods/:activeTab?', + // component: () => import('@/views/goods/goodsManage/addGoods'), + // name: 'addGoods', + // meta: { title: '新增商品', icon: '' }, + // hidden: true, + // }, + // { + // path: 'editGoods/:activeTab?', + // component: () => import('@/views/goods/goodsManage/editGoods'), + // name: 'editGoods', + // meta: { title: '编辑商品', icon: '' }, + // hidden: true, + // }, + // { + // path: 'seeDetails/:activeTab?', + // component: () => import('@/views/goods/goodsManage/seeDetails'), + // name: 'seeDetails', + // meta: { title: '商品详情', icon: '' }, + // hidden: true, + // }, + // ] }, { path: 'goodsCategory', @@ -254,6 +278,18 @@ export const constantRoutes = [ noCache: false, link: null, }, + // children: [ + // { + // path: 'auditGoods/:activeTab?', + // component: () => import('@/views/goods/goodsReview/auditGoods'), + // name: 'auditGoods', + // hidden: true, + // meta: { + // title: "商品审核", + // icon: "", + // }, + // }, + // ] }, ], }, @@ -442,6 +478,7 @@ export const constantRoutes = [ name: "order", component: Layout, hidden: false, + redirect: 'noredirect', meta: { title: "订单列表", icon: "documentation", diff --git a/src/views/error/401.vue b/src/views/error/401.vue index b361368..b719ea6 100644 --- a/src/views/error/401.vue +++ b/src/views/error/401.vue @@ -12,7 +12,7 @@
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面