代码优化
This commit is contained in:
parent
5d4d57f9c1
commit
d95efa5bd5
|
|
@ -23,9 +23,6 @@ export default {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
|
||||||
console.log(process.env.VUE_APP_ENV, '当前环境---')
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
|
|
@ -221,7 +221,7 @@ export default {
|
||||||
// 工程数据
|
// 工程数据
|
||||||
projectList: [],
|
projectList: [],
|
||||||
statusList: [
|
statusList: [
|
||||||
{ id: '', name: '请选择' },
|
{ id: '', name: '全部' },
|
||||||
{ id: '0', name: '结算中' },
|
{ id: '0', name: '结算中' },
|
||||||
{ id: '1', name: '已结算' },
|
{ id: '1', name: '已结算' },
|
||||||
], //集合
|
], //集合
|
||||||
|
|
|
||||||
|
|
@ -42,9 +42,9 @@ module.exports = {
|
||||||
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
|
||||||
// target: `https://z.csgmall.com.cn`,
|
// target: `https://z.csgmall.com.cn`,
|
||||||
|
|
||||||
// target: `http://192.168.2.152:39080`, //超
|
target: `http://192.168.2.152:39080`, //超
|
||||||
// target: `http://10.40.92.81:8080`, //韩/
|
// target: `http://10.40.92.81:8080`, //韩/
|
||||||
target: `http://192.168.2.81:39080`,//旭/
|
// target: `http://192.168.2.81:39080`,//旭/
|
||||||
// target: `http://10.40.92.138:28080`, //帅
|
// target: `http://10.40.92.138:28080`, //帅
|
||||||
// target: `http://192.168.2.218:39080`, //福
|
// target: `http://192.168.2.218:39080`, //福
|
||||||
// target: `http://192.168.2.120:39080`, //跃
|
// target: `http://192.168.2.120:39080`, //跃
|
||||||
|
|
@ -111,7 +111,7 @@ module.exports = {
|
||||||
})
|
})
|
||||||
.end()
|
.end()
|
||||||
|
|
||||||
config.when(process.env.NODE_ENV !== 'development', config => {
|
config.when(process.env.NODE_ENV !== 'development', (config) => {
|
||||||
config
|
config
|
||||||
.plugin('ScriptExtHtmlWebpackPlugin')
|
.plugin('ScriptExtHtmlWebpackPlugin')
|
||||||
.after('html')
|
.after('html')
|
||||||
|
|
@ -147,11 +147,11 @@ module.exports = {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
config.optimization.runtimeChunk("single"),
|
config.optimization.runtimeChunk('single'),
|
||||||
{
|
{
|
||||||
from: path.resolve(__dirname, "./public/robots.txt"), //防爬虫文件
|
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
|
||||||
to: "./", //到根目录下
|
to: './', //到根目录下
|
||||||
};
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue