新版打包监控,不再用前端轮询

This commit is contained in:
aixianling
2023-01-19 10:47:51 +08:00
parent e419339c10
commit 34e23beaeb
3 changed files with 31 additions and 39 deletions

View File

@@ -23,8 +23,8 @@ const app = new Vue({
render: h => h(App)
});
let theme = null
store.dispatch('getSystem').then(({colorScheme}) => {
theme = JSON.parse(colorScheme || null)
store.dispatch('getSystem').then(res => {
theme = JSON.parse(res?.colorScheme || null)
Vue.prototype.$theme = theme?.web || "blue"
return import(`dui/lib/styles/theme.${theme?.web}.scss`).catch(() => 0)
}).finally(() => {