Преглед изворни кода

调整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,
     store,
     i18n,
-    devtools: true,
+    devtools: process.env.NODE_ENV === 'development',
     async created () {
         // 加载接口配置
         await this.$store.dispatch('ibps/api/load')