Change to use tasks for mj (#65)
Co-authored-by: Germey <germey@acedata.cloud>
This commit is contained in:
1 parent
4d179f306a
commit
01d44e75f2
16 files changed
+194
-67
No files matched your search
@@ -94,8 +94,8 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
imagineTasks() {
|
||||
return this.$store.state.midjourney.imagineTasks;
|
||||
tasks() {
|
||||
return this.$store.state.midjourney.tasks;
|
||||
},
|
||||
service() {
|
||||
return this.$store.state.midjourney.service;
|
||||
@@ -189,7 +189,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
imagineTasks: {
|
||||
tasks: {
|
||||
handler(val, oldVal) {
|
||||
if (oldVal === undefined && val) {
|
||||
this.onScrollDown();
|
||||
@@ -272,7 +272,7 @@ export default defineComponent({
|
||||
}, 500);
|
||||
},
|
||||
async onSyncTasks() {
|
||||
await this.$store.dispatch('midjourney/getImagineTasks', {
|
||||
await this.$store.dispatch('midjourney/getTasks', {
|
||||
limit: 30,
|
||||
offset: 0
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user