From f952931b92cc991f2a3d77a4c04a8b9cb3062d2e Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 21 Jul 2022 18:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E3=80=91=E8=A7=A3=E5=86=B3=E7=99=BB=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/main.js b/front/src/main.js index c43d1b20..a26b26ca 100644 --- a/front/src/main.js +++ b/front/src/main.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 - * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-07 09:22:56 + * @LastEditors: hisense.wuhongjian + * @LastEditTime: 2022-07-21 18:27:41 * @Description: 告诉大家这是什么 */ import { createApp } from 'vue' @@ -25,10 +25,10 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue' * @author chuzhixin 1204505056@qq.com * @description 正式环境默认使用mock,正式项目记得注释后再打包 */ -if (process.env.NODE_ENV === 'production') { - const { mockXHR } = require('@/utils/static') - mockXHR() -} +// if (process.env.NODE_ENV === 'production') { +// const { mockXHR } = require('@/utils/static') +// mockXHR() +// } const emitter = mitt() const app = createApp(App) app.config.globalProperties.$emitter = emitter