Browse Source

调整devtools仅在开发环境生效

cfort 1 year ago
parent
commit
01f68eac0e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

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