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