fit get applications (#114)

This commit is contained in:
HCode authored and GitHub committed 2024-08-17 15:09:58 +08:00
1 parent 7c8a649047
commit 5eb453dec2
17 files changed
+113 -35

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@
:application="application"
:need-apply="needApply"
:service="service"
@refresh="$store.dispatch('chatdoc/getApplication')"
@refresh="$store.dispatch('chatdoc/getApplications')"
/>
</div>
<div class="dialogue">
+3 -3
View File
@@ -15,7 +15,7 @@
:application="application"
:need-apply="needApply"
:service="service"
@refresh="$store.dispatch('chatdoc/getApplication')"
@refresh="$store.dispatch('chatdoc/getApplications')"
/>
</div>
<el-row class="repositories" :gutter="15">
@@ -93,7 +93,7 @@ export default defineComponent({
return this.$store.state.chatdoc.repositories;
},
needApply() {
return this.$store.state.chatdoc.status.getApplication === Status.Success && !this.application;
return this.$store.state.chatdoc.status.getApplications === Status.Success && !this.application;
},
application() {
return this.$store.state.chatdoc.application;
@@ -102,7 +102,7 @@ export default defineComponent({
return this.$store.state.chatdoc.service;
},
initializing() {
return this.$store.state.chatdoc.status.getApplication === Status.Request;
return this.$store.state.chatdoc.status.getApplications === Status.Request;
}
},
async mounted() {},
+3 -3
View File
@@ -15,7 +15,7 @@
:application="application"
:need-apply="needApply"
:service="service"
@refresh="$store.dispatch('chatdoc/getApplication')"
@refresh="$store.dispatch('chatdoc/getApplications')"
/>
</div>
<div class="operations">
@@ -99,7 +99,7 @@ export default defineComponent({
return this.repository?.documents;
},
needApply() {
return this.$store.state.chatdoc.status.getApplication === Status.Success && !this.application;
return this.$store.state.chatdoc.status.getApplications === Status.Success && !this.application;
},
service() {
return this.$store.state.chatdoc.service;
@@ -108,7 +108,7 @@ export default defineComponent({
return this.$store.state.chatdoc.application;
},
initializing() {
return this.$store.state.chatdoc.status.getApplication === Status.Request;
return this.$store.state.chatdoc.status.getApplications === Status.Request;
}
},
async mounted() {
+4 -4
View File
@@ -53,7 +53,7 @@ export default defineComponent({
},
computed: {
loading() {
return this.$store.state.luma?.status?.getApplication === Status.Request;
return this.$store.state.luma?.status?.getApplications === Status.Request;
},
service() {
return this.$store.state.luma.service;
@@ -65,10 +65,10 @@ export default defineComponent({
return this.$store.state.luma.config;
},
initializing() {
return this.$store.state.luma.status.getApplication === Status.Request;
return this.$store.state.luma.status.getApplications === Status.Request;
},
needApply() {
return this.$store.state.luma.status.getApplication === Status.Success && !this.application;
return this.$store.state.luma.status.getApplications === Status.Success && !this.application;
},
application() {
return this.$store.state.luma.application;
@@ -96,7 +96,7 @@ export default defineComponent({
},
async onGetApplication() {
console.debug('start onGetApplication');
await this.$store.dispatch('luma/getApplication');
await this.$store.dispatch('luma/getApplications');
console.debug('end onGetApplication');
await this.onGetTasks();
},
+1 -1
View File
@@ -55,7 +55,7 @@ export default defineComponent({
},
computed: {
loading() {
return this.$store.state.qrart?.status?.getApplication === Status.Request;
return this.$store.state.qrart?.status?.getApplications === Status.Request;
},
service() {
return this.$store.state.qrart.service;
+1 -1
View File
@@ -60,7 +60,7 @@ export default defineComponent({
},
computed: {
loading() {
return this.$store.state.suno?.status?.getApplication === Status.Request;
return this.$store.state.suno?.status?.getApplications === Status.Request;
},
service() {
return this.$store.state.suno.service;