修复 npm run build 打包正常正常

This commit is contained in:
stivepeim
2022-02-21 14:39:22 +08:00
parent 26f0c0d48e
commit e0150ddd10
2 changed files with 0 additions and 16 deletions

View File

@@ -125,19 +125,6 @@ if (vconsole !== undefined && vconsole === md5Crmeb) {
String.prototype.replaceAll = function(s1, s2) {
return this.replace(new RegExp(s1, "gm"), s2);
}
// Vue.prototype.$modalCoupon = modalCoupon
/**
* If you don't want to use mock-server
* you want to use MockJs for mock api
* you can execute: mockXHR()
*
* Currently MockJs will be used in the production environment,
* please remove it before going online ! ! !
*/
if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('../mock')
mockXHR()
}
Vue.use(Element, {
size: Cookies.get('size') || 'mini' // set element-ui default size

View File

@@ -1,3 +0,0 @@
{
"domain":"http://localhost:8080"
}