migrate vuex modules
This commit is contained in:
1 parent
9c5ce9acf3
commit
f39e155301
17 files changed
+177
-133
No files matched your search
@@ -43,20 +43,20 @@ export default defineComponent({
|
||||
computed: {
|
||||
stream: {
|
||||
get() {
|
||||
return this.$store.getters.setting.stream;
|
||||
return this.$store.getters['common/setting'].stream;
|
||||
},
|
||||
set(value: boolean) {
|
||||
this.$store.dispatch('setSetting', {
|
||||
this.$store.dispatch('common/setSetting', {
|
||||
stream: value
|
||||
});
|
||||
}
|
||||
},
|
||||
endpoint: {
|
||||
get() {
|
||||
return this.$store.getters.setting.endpoint;
|
||||
return this.$store.getters['common/setting'].endpoint;
|
||||
},
|
||||
set(value: string) {
|
||||
this.$store.dispatch('setSetting', {
|
||||
this.$store.dispatch('common/setSetting', {
|
||||
endpoint: value
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user