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