File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,6 @@ export default Vue.extend({
243
243
},
244
244
245
245
watch: {
246
- // Capture contentType and body passed from the parent as props.
247
246
tab (t ) {
248
247
this .$utils .setPref (' settings.tab' , t);
249
248
},
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" items" >
3
- <b-tabs :animated =" false" >
3
+ <b-tabs :animated =" false" v-model = " tab " >
4
4
<b-tab-item :label =" $t('settings.appearance.adminName')" label-position =" on-border" >
5
5
<div class =" block" >
6
6
{{ $t('settings.appearance.adminHelp') }}
@@ -55,9 +55,20 @@ export default Vue.extend({
55
55
data () {
56
56
return {
57
57
data: this .form ,
58
+ tab: 0 ,
58
59
};
59
60
},
60
61
62
+ mounted () {
63
+ this .tab = this .$utils .getPref (' settings.apperanceTab' ) || 0 ;
64
+ },
65
+
66
+ watch: {
67
+ tab (t ) {
68
+ this .$utils .setPref (' settings.apperanceTab' , t);
69
+ },
70
+ },
71
+
61
72
computed: {
62
73
... mapState ([' settings' ]),
63
74
},
You can’t perform that action at this time.
0 commit comments