We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f563a7 commit a0b39d5Copy full SHA for a0b39d5
src/main.js
@@ -25,11 +25,12 @@ import * as filters from './filters' // global filters
25
* you can execute: mockXHR()
26
*
27
* Currently MockJs will be used in the production environment,
28
- * please remove it before going online! ! !
+ * please remove it before going online ! ! !
29
*/
30
-import { mockXHR } from '../mock'
31
if (process.env.NODE_ENV === 'production') {
32
- mockXHR()
+ import('../mock').then(({ mockXHR }) => {
+ mockXHR()
33
+ })
34
}
35
36
Vue.use(Element, {
0 commit comments