Migrate new service (#1)

This commit is contained in:
AceDataCloud committed 2024-03-07 01:09:03 +08:00
1 parent f13ca37d63
commit 28da0263dc
109 files changed
+1160 -1053

No files matched your search

+7 -3
View File
@@ -37,12 +37,16 @@ export default defineComponent({
};
},
async mounted() {
await this.onGetApplications();
await this.onGetService();
await this.onGetApplication();
await this.onGetConversations();
},
methods: {
async onGetApplications() {
await this.$store.dispatch('chat/getApplications');
async onGetService() {
await this.$store.dispatch('chat/getService');
},
async onGetApplication() {
await this.$store.dispatch('chat/getApplication');
},
async onGetConversations() {
await this.$store.dispatch('chat/getConversations');
+6 -2
View File
@@ -25,7 +25,7 @@ import { defineComponent } from 'vue';
import { ElMenu, ElMenuItem } from 'element-plus';
import { ROUTE_CHATDOC_CONVERSATION_NEW, ROUTE_CHATDOC_MANAGE } from '@/router';
import { RouteLocationRaw } from 'vue-router';
import { IChatdocRepository } from '@/operators';
import { IChatdocRepository } from '@/models';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
interface IMenuItem {
@@ -92,12 +92,16 @@ export default defineComponent({
}
},
async mounted() {
await this.getService();
await this.onGetApplications();
await this.onGetRepositories();
},
methods: {
async getService() {
await this.$store.dispatch('chatdoc/getService');
},
async onGetApplications() {
await this.$store.dispatch('chatdoc/getApplications');
await this.$store.dispatch('chatdoc/getApplication');
},
async onGetRepositories() {
await this.$store.dispatch('chatdoc/getRepositories');
+12
View File
@@ -41,6 +41,18 @@ export default defineComponent({
drawer: false,
drawer2: 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>