Optimize the auth flow (#68)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2024-07-03 17:17:11 +00:00
1 parent 033cbc082c
commit 85aef535f6
23 files changed
+215 -245

No files matched your search

-16
View File
@@ -35,22 +35,6 @@ export default defineComponent({
return {
drawer: false
};
},
async mounted() {
await this.onGetService();
await this.onGetApplication();
await this.onGetConversations();
},
methods: {
async onGetService() {
await this.$store.dispatch('chat/getService');
},
async onGetApplication() {
await this.$store.dispatch('chat/getApplication');
},
async onGetConversations() {
await this.$store.dispatch('chat/getConversations');
}
}
});
</script>
+1 -14
View File
@@ -29,21 +29,8 @@ export default defineComponent({
},
data() {
return {
drawer: false,
drawer2: false
drawer: false
};
},
async mounted() {
await this.onGetService();
await this.onGetApplication();
},
methods: {
async onGetService() {
await this.$store.dispatch('midjourney/getService');
},
async onGetApplication() {
await this.$store.dispatch('midjourney/getApplication');
}
}
});
</script>
-12
View File
@@ -31,18 +31,6 @@ export default defineComponent({
return {
drawer: false
};
},
async mounted() {
await this.onGetService();
await this.onGetApplication();
},
methods: {
async onGetService() {
await this.$store.dispatch('qrart/getService');
},
async onGetApplication() {
await this.$store.dispatch('qrart/getApplication');
}
}
});
</script>