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 4f563a7 commit 81db6b8Copy full SHA for 81db6b8
src/main.js
@@ -24,11 +24,9 @@ import * as filters from './filters' // global filters
24
* you want to use MockJs for mock api
25
* you can execute: mockXHR()
26
*
27
- * Currently MockJs will be used in the production environment,
28
- * please remove it before going online! ! !
29
*/
30
-import { mockXHR } from '../mock'
31
if (process.env.NODE_ENV === 'production') {
+ const { mockXHR } = require('../mock').default
32
mockXHR()
33
}
34
0 commit comments