Commit 5ea66232 authored by Kimber's avatar Kimber

'update'

parent f34edae9
...@@ -1264,7 +1264,12 @@ ...@@ -1264,7 +1264,12 @@
loading.close(); loading.close();
this.isReady = true; this.isReady = true;
this.mineList = res && res.data && res.data.results; this.mineList = res && res.data && res.data.results;
console.log('mineList ________________ ', this.mineList);
this.mineNumber1 = this.mineList.filter(x => x.mineType == 1).length; this.mineNumber1 = this.mineList.filter(x => x.mineType == 1).length;
this.mineNumber2 = this.mineList.filter(x => x.mineType == 2).length; this.mineNumber2 = this.mineList.filter(x => x.mineType == 2).length;
this.mineNumber3 = this.mineList.filter(x => x.mineType == 3).length; this.mineNumber3 = this.mineList.filter(x => x.mineType == 3).length;
......
This diff is collapsed.
...@@ -22,24 +22,6 @@ module.exports = { ...@@ -22,24 +22,6 @@ module.exports = {
assetsDir: 'static', assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development', lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false, productionSourceMap: false,
pages:{
index: {
// 页面的入口文件
entry: Mode+'/main.js',
// 页面的模板文件
//template: './public/edge.html',
//chunks:["edge"],
},
plus: {
// 页面的入口文件
entry: Mode+'/plus.js',
// 页面的模板文件
template: './public/plus.html',
// build 生成的文件名称 例: dist/index.html
filename: 'plus.html',
chunks:["plus", "runtime", "chunk-libs", "chunk-elementUI"],
}
},
devServer: { devServer: {
port: port, port: port,
host: VUE_APP_BASE_API && VUE_APP_BASE_API.split(/\/\/|:/).slice(-2)[0], host: VUE_APP_BASE_API && VUE_APP_BASE_API.split(/\/\/|:/).slice(-2)[0],
...@@ -83,18 +65,15 @@ module.exports = { ...@@ -83,18 +65,15 @@ module.exports = {
} }
}, },
plugins: [ plugins: [
new CopyWebpackPlugin([{ // https://www.ydyno.com/archives/1260.html 使用gzip解压缩静态文件
from: "./static",
to: 'static' /* new CompressionPlugin({
}]), test: /\.(js|css|html)?$/i, // 压缩文件格式
], filename: '[path].gz[query]', // 压缩后的文件名
name: name, algorithm: 'gzip', // 使用gzip压缩
resolve: { minRatio: 0.8 // 压缩率小于1才会压缩
alias: { }) */
'@': resolve(Mode+''), ]
'@crud': resolve(Mode+'/components/Crud')
}
}
}, },
chainWebpack(config) { chainWebpack(config) {
config.plugins.delete('preload') // TODO: need test config.plugins.delete('preload') // TODO: need test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment