refactor code
This commit is contained in:

parent
7e9bd540ed
commit
a5c35809fa
@ -13,7 +13,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mode: null,
|
mode: null,
|
||||||
isLoading: false
|
// isLoading: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -29,12 +29,10 @@ export default {
|
|||||||
setThemeChange: 'setThemeChange',
|
setThemeChange: 'setThemeChange',
|
||||||
}),
|
}),
|
||||||
themeChange() {
|
themeChange() {
|
||||||
this.isLoading = true;
|
// this.isLoading = true;
|
||||||
this.mode = !this.mode;
|
this.mode = !this.mode;
|
||||||
this.$vuetify.theme.isDark = this.mode;
|
this.$vuetify.theme.isDark = this.mode;
|
||||||
this.setThemeChange(this.mode);
|
this.setThemeChange(this.mode);
|
||||||
// console.log(this.mode)
|
|
||||||
// console.log(this.$vuetify.theme.isDark)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -97,7 +97,6 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectedObjId(val) {
|
selectedObjId(val) {
|
||||||
console.log(val);
|
|
||||||
if (val === 'TAG') {
|
if (val === 'TAG') {
|
||||||
this.detailList[1].class = 'd-none ';
|
this.detailList[1].class = 'd-none ';
|
||||||
this.detailList[2].class = 'd-block pl-4 mt-2';
|
this.detailList[2].class = 'd-block pl-4 mt-2';
|
||||||
|
Reference in New Issue
Block a user