Merge branch 'dev'

* dev:
  zx
  cxw-010203
prod
校文 2 years ago
commit 2eae9a6ded

@ -225,7 +225,7 @@ export default {
//
handlerBrand(arr) {
let row = this.list[this.chooseIndex];
row.brand = arr[0].brandname;
row.brand = arr[1].brandname;
row.model = arr[1].name;
row.isDel = true;
},

@ -159,7 +159,7 @@ export default {
let n = this.list.findIndex((ele) => ele.model === arr[1].name);
if (n != -1) return;
let row = this.list[this.chooseIndex];
row.brand = arr[0].brandname;
row.brand = arr[1].brandname;
row.model = arr[1].name;
row.isDel = true;
let filterArr = this.list.filter((ele) => {

@ -7,7 +7,7 @@
* @FilePath: /data-show/vue.config.js
*/
const CompressionWebpackPlugin = require('compression-webpack-plugin')
const productionGzipExtensions = ['js', 'css', 'svg']
const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i
// 1. 引入等比适配插件
const px2rem = require('postcss-px2rem')
// 2. 配置基本大小
@ -37,9 +37,10 @@ module.exports = {
new CompressionWebpackPlugin({
filename: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
test: productionGzipExtensions,
threshold: 10240,
minRatio: 0.8
minRatio: 0.8,
deleteOriginalAssets: false
})
)
} else {

Loading…
Cancel
Save