diff --git a/.env.test b/.env.test index 6f9491b..3f0907a 100644 --- a/.env.test +++ b/.env.test @@ -5,7 +5,7 @@ VITE_APP_TITLE = 运营云后台管理系统 VITE_APP_ENV = 'production' # 测试环境 -VITE_APP_BASE_API = 'http://192.168.18.99:8080/' +VITE_APP_BASE_API = 'http://192.168.18.99:8080' VITE_APP_PLATFORM = 'http://192.168.18.99/platform' # 是否在打包时开启压缩,支持 gzip 和 brotli diff --git a/src/router/index.js b/src/router/index.js index f346813..327f1da 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -94,6 +94,12 @@ export const constantRoutes = [ 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'), diff --git a/src/views/goods/contrabandManage/index.vue b/src/views/goods/contrabandManage/index.vue index f890064..dd5f700 100644 --- a/src/views/goods/contrabandManage/index.vue +++ b/src/views/goods/contrabandManage/index.vue @@ -286,7 +286,6 @@ const addItem = () => { dialogFormVisible.value = true; }; const cancelDialog = () => { - dialogRef.value.resetFields(); Object.assign(dialogForm, { // 保持响应性,手动清空字段 id: "", violateGoodName: "", diff --git a/src/views/goods/goodsCategory/index.vue b/src/views/goods/goodsCategory/index.vue index 721472d..ee1653b 100644 --- a/src/views/goods/goodsCategory/index.vue +++ b/src/views/goods/goodsCategory/index.vue @@ -372,6 +372,7 @@ const onSaveCategory = () => { proxy.$modal.loading("正在保存..."); let param = { ...dialogForm }; param.level = dialogForm.selectedNode.level; + param.type = dialogForm.selectedNode.type; let response; if (dialogTitle.value == "编辑分类") { response = await categoryEdit(param); @@ -400,10 +401,9 @@ const onSaveCategory = () => { const addCategory = () => { dialogTitle.value = "添加分类"; getGoodTypeList(); - dialogRef.value.resetFields(); Object.assign(dialogForm, { // 保持响应性,手动清空字段 id: "", - type: null, + type: 1, name: "", level: "", parentId: "", @@ -412,7 +412,6 @@ const addCategory = () => { dialogFormVisible.value = true; }; const cancelDialog = () => { - dialogRef.value.resetFields(); Object.assign(dialogForm, { // 保持响应性,手动清空字段 id: "", type: null, diff --git a/src/views/goods/goodsManage/seeDetails.vue b/src/views/goods/goodsManage/seeDetails.vue index e3c6761..184bdd2 100644 --- a/src/views/goods/goodsManage/seeDetails.vue +++ b/src/views/goods/goodsManage/seeDetails.vue @@ -135,9 +135,9 @@
- +
diff --git a/vite.config.js b/vite.config.js index e6b48b0..a651f05 100644 --- a/vite.config.js +++ b/vite.config.js @@ -33,9 +33,9 @@ export default defineConfig(({ mode, command }) => { chunkSizeWarningLimit: 2000, rollupOptions: { output: { - chunkFileNames: "static/js/[name]-[hash].js", - entryFileNames: "static/js/[name]-[hash].js", - assetFileNames: "static/[ext]/[name]-[hash].[ext]", + chunkFileNames: `static/js/[name]-${Date.now()}-[hash].js`, + entryFileNames: `static/js/[name]-${Date.now()}-[hash].js`, + assetFileNames: `static/[ext]/[name]-${Date.now()}-[hash].[ext]`, }, }, },