From 440f4d1dbc63c302e59f304e589413019178046d Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期三, 20 十二月 2023 14:55:09 +0800 Subject: [PATCH] modified: src/api/quality/Packaging_ledger.js modified: src/const/website.js modified: src/page/PackingLedgerDetails/index.vue modified: src/permission.js modified: src/views/quality/Packaging_ledger/index.vue modified: vue.config.js --- vue.config.js | 52 +++++++++++++++++++++++++++------------------------- 1 files changed, 27 insertions(+), 25 deletions(-) diff --git a/vue.config.js b/vue.config.js index 2ba50db..a0a6201 100644 --- a/vue.config.js +++ b/vue.config.js @@ -2,13 +2,15 @@ * 閰嶇疆鍙傝��: * https://cli.vuejs.org/zh/config/ */ -// const url = 'http://192.168.2.7:9999' -//const url = 'http://192.168.32.45:9999' -// const url = 'http://192.168.0.23:9999' - const url = 'http://localhost:9999' -// const url = 'http://ztt-gateway:9999' + +const url = 'http://192.168.2.7:9999' +// const url = 'http://192.168.32.45:9999' + +// const url = 'http://localhost:9999' + + const localUrl = 'http://localhost:8089' //const localUrl = 'http://10.88.15.95:8089' const CompressionWebpackPlugin = require('compression-webpack-plugin') @@ -29,26 +31,26 @@ }, // eslint-disable-next-line configureWebpack: (config) => { - // if (process.env.NODE_ENV === 'production') { - // // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆 - // return { - // plugins: [ - // /*new MonacoWebpackPlugin({ - // languages: ['javascript', 'css', 'html', 'json'] - // }),*/ - // new CompressionWebpackPlugin({ - // filename: '[path].gz[query]', - // algorithm: 'gzip', - // test: new RegExp( - // '\\.(' + productionGzipExtensions.join('|') + ')$' - // ), - // threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶� - // minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞� - // deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠� - // }) - // ] - // } - // } + if (process.env.NODE_ENV === 'production') { + // 浠呭湪鐢熶骇鐜涓嬪惎鐢ㄨ閰嶇疆 + return { + plugins: [ + /*new MonacoWebpackPlugin({ + languages: ['javascript', 'css', 'html', 'json'] + }),*/ + new CompressionWebpackPlugin({ + filename: '[path].gz[query]', + algorithm: 'gzip', + test: new RegExp( + '\\.(' + productionGzipExtensions.join('|') + ')$' + ), + threshold: 1024, // 鍙湁澶у皬澶т簬璇ュ�肩殑璧勬簮浼氳澶勭悊,褰撳墠閰嶇疆涓哄浜庤秴杩�1k鐨勬暟鎹繘琛屽鐞嗭紝涓嶈冻1k鐨勫彲鑳戒細瓒婂帇缂╄秺澶� + minRatio: 0.99, // 鍙湁鍘嬬缉鐜囧皬浜庤繖涓�肩殑璧勬簮鎵嶄細琚鐞� + deleteOriginalAssets: true // 鍒犻櫎鍘熸枃浠� + }) + ] + } + } }, // 閰嶇疆杞彂浠g悊 devServer: { -- Gitblit v1.9.3