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 9793fff commit ac4865aCopy full SHA for ac4865a
src/main.js
@@ -17,12 +17,16 @@ import '@/permission' // permission control
17
18
/**
19
* If you don't want to use mock-server
20
- * you want to use mockjs for request interception
21
- * you can execute:
+ * you want to use MockJs for mock api
+ * you can execute: mockXHR()
22
*
23
- * import { mockXHR } from '../mock'
24
- * mockXHR()
+ * Currently MockJs will be used in the production environment,
+ * please remove it before going online! ! !
25
*/
26
+import { mockXHR } from '../mock'
27
+if (process.env.NODE_ENV === 'production') {
28
+ mockXHR()
29
+}
30
31
// set ElementUI lang to EN
32
Vue.use(ElementUI, { locale })
0 commit comments