refactor code
This commit is contained in:

parent
7e9bd540ed
commit
a5c35809fa
@ -13,7 +13,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
mode: null,
|
||||
isLoading: false
|
||||
// isLoading: false
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -29,12 +29,10 @@ export default {
|
||||
setThemeChange: 'setThemeChange',
|
||||
}),
|
||||
themeChange() {
|
||||
this.isLoading = true;
|
||||
// this.isLoading = true;
|
||||
this.mode = !this.mode;
|
||||
this.$vuetify.theme.isDark = this.mode;
|
||||
this.setThemeChange(this.mode);
|
||||
// console.log(this.mode)
|
||||
// console.log(this.$vuetify.theme.isDark)
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user