We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b57f200 commit d634e2aCopy full SHA for d634e2a
src/main.js
@@ -28,9 +28,8 @@ import * as filters from './filters' // global filters
28
* please remove it before going online ! ! !
29
*/
30
if (process.env.NODE_ENV === 'production') {
31
- import('../mock').then(({ mockXHR }) => {
32
- mockXHR()
33
- })
+ const { mockXHR } = require('../mock')
+ mockXHR()
34
}
35
36
Vue.use(Element, {
0 commit comments