forked from AkkomaGang/admin-fe
fix[ThemePicker]: fixed bug when oldVal is null (#1517)
This commit is contained in:
parent
c54e99d0a9
commit
109c393cc6
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ export default {
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
theme(val, oldVal) {
|
||||
theme(val) {
|
||||
const oldVal = this.theme
|
||||
if (typeof val !== 'string') return
|
||||
const themeCluster = this.getThemeCluster(val.replace('#', ''))
|
||||
const originalCluster = this.getThemeCluster(oldVal.replace('#', ''))
|
||||
|
|
Loading…
Reference in a new issue