diff --git a/src/main.js b/src/main.js index b00b3715..c34e3546 100644 --- a/src/main.js +++ b/src/main.js @@ -29,9 +29,8 @@ import * as filters from './filters' // global filters * please remove it before going online ! ! ! */ if (process.env.NODE_ENV === 'production') { - import('../mock').then(({ mockXHR }) => { - mockXHR() - }) + const { mockXHR } = require('../mock') + mockXHR() } Vue.use(Element, {