From d3441881742c1397cd02f68c4b0de565456f97b1 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期三, 02 七月 2025 14:02:54 +0800 Subject: [PATCH] 1、删除冗余代码 2、设备台账新增弹窗开发完成 --- vue.config.js | 33 +++++++++++++++++---------------- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/vue.config.js b/vue.config.js index 243647b..168df3c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -40,11 +40,11 @@ // 鐢熶骇鐜锛屽紑鍚痡s\css鍘嬬缉 if (process.env.NODE_ENV === 'production') { - config.plugin('compressionPlugin').use(new CompressionPlugin({ - test: /\.(js|css|less)$/, // 鍖归厤鏂囦欢鍚� - threshold: 10240, // 瀵硅秴杩�10k鐨勬暟鎹帇缂� - deleteOriginalAssets: false // 涓嶅垹闄ゆ簮鏂囦欢 - })) + config.plugin('compressionPlugin').use(new CompressionPlugin({ + test: /\.(js|css|less)$/, // 鍖归厤鏂囦欢鍚� + threshold: 10240, // 瀵硅秴杩�10k鐨勬暟鎹帇缂� + deleteOriginalAssets: false // 涓嶅垹闄ゆ簮鏂囦欢 + })) } // 閰嶇疆 webpack 璇嗗埆 markdown 涓烘櫘閫氱殑鏂囦欢 @@ -60,9 +60,9 @@ .rule('vxe') .test(/\.js$/) .include - .add(resolve('node_modules/vxe-table')) - .add(resolve('node_modules/vxe-table-plugin-antd')) - .end() + .add(resolve('node_modules/vxe-table')) + .add(resolve('node_modules/vxe-table-plugin-antd')) + .end() .use() .loader('babel-loader') .end() @@ -84,15 +84,16 @@ devServer: { port: 3000, + open: true, proxy: { - /* '/api': { - target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API鎺ュ彛绯荤粺 - ws: false, - changeOrigin: true, - pathRewrite: { - '/jeecg-boot': '' //榛樿鎵�鏈夎姹傞兘鍔犱簡jeecg-boot鍓嶇紑锛岄渶瑕佸幓鎺� - } - }, */ + /* '/api': { + target: 'https://mock.ihx.me/mock/5baf3052f7da7e07e04a5116/antd-pro', //mock API鎺ュ彛绯荤粺 + ws: false, + changeOrigin: true, + pathRewrite: { + '/jeecg-boot': '' //榛樿鎵�鏈夎姹傞兘鍔犱簡jeecg-boot鍓嶇紑锛岄渶瑕佸幓鎺� + } + }, */ '/jeecg-boot': { target: 'http://localhost:8080', // 璇锋眰鏈湴 闇�瑕乯eecg-boot鍚庡彴椤圭洰 ws: false, -- Gitblit v1.9.3