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 @@
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面