migrate vuex modules

This commit is contained in:
AceDataCloud committed 2023-12-28 03:11:04 +08:00
1 parent 9c5ce9acf3
commit f39e155301
17 files changed
+177 -133

No files matched your search

+2 -2
View File
@@ -73,7 +73,7 @@ export default defineComponent({
return {
applications: [],
channel: MIDJOURNEY_CHANNEL_FAST,
preset: this.$store.getters.midjourney.preset,
preset: this.$store.state.midjourney.preset,
prompt: '',
elements: [],
ignore: '',
@@ -103,7 +103,7 @@ export default defineComponent({
async onFetchApplications() {
this.initializing = true;
const { data: applications } = await applicationOperator.getAll({
user_id: this.$store.state.user.id,
user_id: this.$store.state.common.user.id,
api_id: [MIDJOURNEY_CHANNEL_FAST.apiId, MIDJOURNEY_CHANNEL_RELAX.apiId, MIDJOURNEY_CHANNEL_TURBO.apiId]
});
this.initializing = false;
+2 -2
View File
@@ -90,7 +90,7 @@ export default defineComponent({
return {
applications: [],
channel: MIDJOURNEY_CHANNEL_FAST,
preset: this.$store.getters.midjourney.preset || {},
preset: this.$store.state.midjourney.preset || {},
prompt: '',
elements: [],
ignore: '',
@@ -177,7 +177,7 @@ export default defineComponent({
async onFetchApplications() {
this.initializing = true;
const { data: applications } = await applicationOperator.getAll({
user_id: this.$store.state.user.id,
user_id: this.$store.state.common.user.id,
api_id: [MIDJOURNEY_CHANNEL_FAST.apiId, MIDJOURNEY_CHANNEL_RELAX.apiId, MIDJOURNEY_CHANNEL_TURBO.apiId]
});
this.initializing = false;