src/main.js
@@ -21,7 +21,9 @@ import './assets/iconfont/iconfont.css' import '@babel/polyfill' Vue.config.productionTip = false Vue.use(VueLazyload, { error: require('./assets/img-error.png'), loading: require('./assets/loading2.gif') @@ -58,8 +60,7 @@ store, i18n, render: h => h(App), data: { }, data: {}, mounted() { // 加载主题 this.$store.commit('setTheme', localStorage.theme);