fix: fixed require mock bug in production
This commit is contained in:
parent
a6bb84b763
commit
255989138d
|
@ -29,9 +29,8 @@ import * as filters from './filters' // global filters
|
||||||
* please remove it before going online ! ! !
|
* please remove it before going online ! ! !
|
||||||
*/
|
*/
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
import('../mock').then(({ mockXHR }) => {
|
const { mockXHR } = require('../mock')
|
||||||
mockXHR()
|
mockXHR()
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Vue.use(Element, {
|
Vue.use(Element, {
|
||||||
|
|
Loading…
Reference in New Issue