refactor: 重构主题色配置,多标签配置化处理
This commit is contained in:
@@ -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',
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
@@ -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
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user