Browse Source

chore: remove default theme changed handle

Sendya 4 years ago
parent
commit
5fb1fee1a5
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/layouts/BasicLayout.vue

+ 4 - 1
src/layouts/BasicLayout.vue

@@ -112,7 +112,10 @@ export default {
     }
 
     // first update color
-    updateTheme(this.settings.primaryColor)
+    // TIPS: THEME COLOR HANDLER!! PLEASE CHECK THAT!!
+    if (process.env.NODE_ENV !== 'production' || process.env.VUE_APP_PREVIEW === 'true') {
+      updateTheme(this.settings.primaryColor)
+    }
   },
   methods: {
     i18nRender,