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

调整devtools仅在开发环境生效

cfort пре 1 година
родитељ
комит
56138b5d9f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/main.js

+ 1 - 0
src/main.js

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