refactor: 重构主题色配置,多标签配置化处理

This commit is contained in:
张传龙
2022-04-10 23:20:28 +08:00
parent 0d240f083a
commit b3aa8147b1
11 changed files with 44 additions and 40 deletions

View File

@@ -1,17 +0,0 @@
import { defineStore } from 'pinia'
export const useAppStore = defineStore('app', {
state() {
return {
themeOverrides: {
common: {
primaryColor: '#316c72',
primaryColorSuppl: '#316c72',
primaryColorHover: '#316c72',
successColorHover: '#316c72',
successColorSuppl: '#316c72',
},
},
}
},
})

View File

@@ -1,17 +1,13 @@
import { defineStore } from 'pinia'
import { themeSettings } from '@/settings'
export const useThemeStore = defineStore('theme', {
state() {
return {
tag: {
visible: true,
height: 50,
},
}
return themeSettings
},
getters: {},
actions: {
setTabVisible(visible) {
this.tag.visible = visible
this.tags.visible = visible
},
},
})