migrate vuex modules

This commit is contained in:
AceDataCloud committed 2023-12-28 03:11:04 +08:00
1 parent 9c5ce9acf3
commit f39e155301
17 files changed
+177 -133

No files matched your search

+4 -4
View File
@@ -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
});
}