WCS主题UI与登陆页面以及标题修改
This commit is contained in:
@@ -10,7 +10,20 @@ import ThemePicker from "@/components/ThemePicker"
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
components: { ThemePicker }
|
||||
components: { ThemePicker },
|
||||
computed: {
|
||||
sideTheme() {
|
||||
return this.$store.state.settings.sideTheme
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
sideTheme: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
document.documentElement.setAttribute('data-theme', val)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user