From 859ad6cd8cc4fe3b0510b96320f90c96b17a3404 Mon Sep 17 00:00:00 2001 From: From-WH Date: Tue, 14 Mar 2023 10:29:03 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E5=AE=A2=E6=9C=8D=E9=80=80=E5=87=BA?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/router/modules/frameOut.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/template/admin/src/router/modules/frameOut.js b/template/admin/src/router/modules/frameOut.js index 609278fef..19f969461 100644 --- a/template/admin/src/router/modules/frameOut.js +++ b/template/admin/src/router/modules/frameOut.js @@ -25,16 +25,13 @@ export default [ }, // 客服 { - path: routePre + '/kefu', + path: '/kefu', name: `${pre}index`, meta: { auth: true, title: '客服管理', kefu: true, }, - redirect: { - name: `setting_service`, - }, component: () => import('@/pages/kefu/index'), }, { From 90befa354b836e05bb66fcb8a300c590f5ac6c65 Mon Sep 17 00:00:00 2001 From: From-WH Date: Tue, 14 Mar 2023 11:24:38 +0800 Subject: [PATCH 2/3] =?UTF-8?q?improve:=20=E5=8F=96=E6=B6=88=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/vue.config.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/template/admin/vue.config.js b/template/admin/vue.config.js index 1de6eeb44..be08d7e54 100644 --- a/template/admin/vue.config.js +++ b/template/admin/vue.config.js @@ -3,7 +3,7 @@ const Setting = require('./src/setting.env'); // 引入打包分析文件 const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); // 引入Gzip压缩文件 -const CompressionPlugin = require('compression-webpack-plugin'); +// const CompressionPlugin = require('compression-webpack-plugin'); // 引入js打包工具 const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); @@ -43,15 +43,15 @@ module.exports = { configureWebpack: (config) => { const pluginsPro = [new BundleAnalyzerPlugin()]; - pluginsPro.push( - new CompressionPlugin({ - algorithm: 'gzip', - test: /\.js$|\.html$|\.css$/, // 匹配文件名 - minRatio: 0.8, // 压缩率小于1才会压缩 - threshold: 10240, // 对超过10k的数据压缩 - deleteOriginalAssets: false, // 是否删除未压缩的源文件,谨慎设置,如果希望提供非gzip的资源,可不设置或者设置为false(比如删除打包后的gz后还可以加载到原始资源文件) - }), - ); + // pluginsPro.push( + // new CompressionPlugin({ + // algorithm: 'gzip', + // test: /\.js$|\.html$|\.css$/, // 匹配文件名 + // minRatio: 0.8, // 压缩率小于1才会压缩 + // threshold: 10240, // 对超过10k的数据压缩 + // deleteOriginalAssets: false, // 是否删除未压缩的源文件,谨慎设置,如果希望提供非gzip的资源,可不设置或者设置为false(比如删除打包后的gz后还可以加载到原始资源文件) + // }), + // ); pluginsPro.push( // js文件压缩 new UglifyJsPlugin({ From cc53200eb9caeb65627984358f1a2411e5b8f659 Mon Sep 17 00:00:00 2001 From: From-WH Date: Tue, 14 Mar 2023 14:50:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?improve:=20=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/vue.config.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/template/admin/vue.config.js b/template/admin/vue.config.js index be08d7e54..e7bba642d 100644 --- a/template/admin/vue.config.js +++ b/template/admin/vue.config.js @@ -2,8 +2,6 @@ const path = require('path'); const Setting = require('./src/setting.env'); // 引入打包分析文件 const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); -// 引入Gzip压缩文件 -// const CompressionPlugin = require('compression-webpack-plugin'); // 引入js打包工具 const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); @@ -43,15 +41,6 @@ module.exports = { configureWebpack: (config) => { const pluginsPro = [new BundleAnalyzerPlugin()]; - // pluginsPro.push( - // new CompressionPlugin({ - // algorithm: 'gzip', - // test: /\.js$|\.html$|\.css$/, // 匹配文件名 - // minRatio: 0.8, // 压缩率小于1才会压缩 - // threshold: 10240, // 对超过10k的数据压缩 - // deleteOriginalAssets: false, // 是否删除未压缩的源文件,谨慎设置,如果希望提供非gzip的资源,可不设置或者设置为false(比如删除打包后的gz后还可以加载到原始资源文件) - // }), - // ); pluginsPro.push( // js文件压缩 new UglifyJsPlugin({