瀏覽代碼

注销mock

PrinceLee 5 年之前
父節點
當前提交
9aeef13726
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/main.js

+ 4 - 4
src/main.js

@@ -27,10 +27,10 @@ Vue.use(animated)
    * Currently MockJs will be used in the production environment,
    * please remove it before going online! ! !
    */
-import { mockXHR } from '../mock'
-if (process.env.NODE_ENV === 'production') {
-  mockXHR()
-}
+// import { mockXHR } from '../mock'
+// if (process.env.NODE_ENV === 'production') {
+//   mockXHR()
+// }
 
 import axios from 'axios'
 Vue.prototype.$http = axios