主题色功能bug修复

This commit is contained in:
pixel
2021-06-29 15:28:39 +08:00
parent 4a39a2f81c
commit df75dae39d
4 changed files with 28 additions and 28 deletions
+20 -2
View File
@@ -118,13 +118,31 @@ export const user = {
token(state) {
return state.token
},
sideMode(state) {
mode(state) {
return state.userInfo.sideMode
},
sideMode(state) {
if (state.userInfo.sideMode === 'dark') {
return '#191a23'
} else if (state.userInfo.sideMode === 'light') {
return '#fff'
} else {
return state.userInfo.sideMode
}
},
baseColor(state) {
return state.userInfo.baseColor
if (state.userInfo.sideMode === 'dark') {
return '#fff'
} else if (state.userInfo.sideMode === 'light') {
return '#191a23'
} else {
return state.userInfo.baseColor
}
},
activeColor(state) {
if (state.userInfo.sideMode === 'dark' || state.userInfo.sideMode === 'light') {
return '#1890ff'
}
return state.userInfo.activeColor
}