Skip to content
Snippets Groups Projects
Unverified Commit 109c393c authored by 花裤衩's avatar 花裤衩 Committed by GitHub
Browse files

fix[ThemePicker]: fixed bug when oldVal is null (#1517)

parent c54e99d0
No related branches found
No related tags found
No related merge requests found
......@@ -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('#', ''))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment