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

+20 -2
View File
@@ -128,10 +128,28 @@ export default defineComponent({
}
}
},
mounted() {
this.onScrollDown();
async mounted() {
await this.onGetService();
await this.onGetApplication();
await this.onGetConversations();
await this.onScrollDown();
},
methods: {
async onGetService() {
console.debug('start onGetService');
await this.$store.dispatch('chat/getService');
console.debug('end onGetService');
},
async onGetApplication() {
console.debug('start onGetApplication');
await this.$store.dispatch('chat/getApplication');
console.debug('end onGetApplication');
},
async onGetConversations() {
console.debug('start onGetConversations');
await this.$store.dispatch('chat/getConversations');
console.debug('end onGetConversations');
},
async onDraft(question: string) {
this.question = question;
this.onSubmit();