fix: 保留mock但不在线上使用

This commit is contained in:
fit2cloud-chenyw 2021-06-10 10:53:19 +08:00
parent 113d04b5a1
commit a0d718c5de

View File

@ -41,9 +41,18 @@ Vue.use(vcolorpicker)
import fullscreen from 'vue-fullscreen'
Vue.use(fullscreen)
// if (process.env.NODE_ENV === 'production') {
// }
/**
* 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()
}
// set ElementUI lang to EN
// Vue.use(ElementUI, { locale })