ソースを参照

调整devtools仅在开发环境生效

cfort 1 年間 前
コミット
01f68eac0e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -40,7 +40,7 @@ new Vue({
     router,
     router,
     store,
     store,
     i18n,
     i18n,
-    devtools: true,
+    devtools: process.env.NODE_ENV === 'development',
     async created () {
     async created () {
         // 加载接口配置
         // 加载接口配置
         await this.$store.dispatch('ibps/api/load')
         await this.$store.dispatch('ibps/api/load')