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'), }, { diff --git a/template/admin/vue.config.js b/template/admin/vue.config.js index 1de6eeb44..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({