From 19648145096baa75346074feb7c1e32a604285a5 Mon Sep 17 00:00:00 2001 From: HCode <71808213+HCodePro@users.noreply.github.com> Date: Fri, 11 Apr 2025 15:43:14 +0800 Subject: [PATCH] Fix kling (#202) --- ...acloud-nexior-154c065c-d8c5-4cd7-b9f7-04b717bf9f86.json | 7 +++++++ src/components/kling/config/ModelSelector.vue | 6 +++--- src/components/kling/config/RatioSelector.vue | 2 ++ src/store/chat/actions.ts | 3 ++- src/store/chatdoc/actions.ts | 3 ++- src/store/flux/actions.ts | 3 ++- src/store/hailuo/actions.ts | 3 ++- src/store/headshots/actions.ts | 3 ++- src/store/kling/actions.ts | 3 ++- src/store/luma/actions.ts | 3 ++- src/store/midjourney/actions.ts | 3 ++- src/store/pika/actions.ts | 3 ++- src/store/qrart/actions.ts | 3 ++- src/store/suno/actions.ts | 3 ++- 14 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 change/@acedatacloud-nexior-154c065c-d8c5-4cd7-b9f7-04b717bf9f86.json diff --git a/change/@acedatacloud-nexior-154c065c-d8c5-4cd7-b9f7-04b717bf9f86.json b/change/@acedatacloud-nexior-154c065c-d8c5-4cd7-b9f7-04b717bf9f86.json new file mode 100644 index 00000000..d5072ffe --- /dev/null +++ b/change/@acedatacloud-nexior-154c065c-d8c5-4cd7-b9f7-04b717bf9f86.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix credential error", + "packageName": "@acedatacloud/nexior", + "email": "1348977728@qq.com", + "dependentChangeType": "patch" +} diff --git a/src/components/kling/config/ModelSelector.vue b/src/components/kling/config/ModelSelector.vue index dc9a1749..50d69031 100644 --- a/src/components/kling/config/ModelSelector.vue +++ b/src/components/kling/config/ModelSelector.vue @@ -30,15 +30,15 @@ export default defineComponent({ options: [ { value: 'kling-v1', - label: 'kling-v1' + label: 'V1' }, { value: 'kling-v1-5', - label: 'kling-v1-5' + label: 'V1.5' }, { value: 'kling-v1-6', - label: 'kling-v1-6' + label: 'V1.6' } ] }; diff --git a/src/components/kling/config/RatioSelector.vue b/src/components/kling/config/RatioSelector.vue index a6aca91c..9aea4f0e 100644 --- a/src/components/kling/config/RatioSelector.vue +++ b/src/components/kling/config/RatioSelector.vue @@ -84,6 +84,7 @@ export default defineComponent({ flex-direction: row; align-items: center; justify-content: space-between; + gap: 10px; .item { width: 48px; @@ -94,6 +95,7 @@ export default defineComponent({ align-items: center; cursor: pointer; border-radius: 5px; + margin-right: 30px; .preview { margin-top: 8px; diff --git a/src/store/chat/actions.ts b/src/store/chat/actions.ts index 067cf5b0..7467ec05 100644 --- a/src/store/chat/actions.ts +++ b/src/store/chat/actions.ts @@ -78,6 +78,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -95,7 +96,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/chatdoc/actions.ts b/src/store/chatdoc/actions.ts index 28d77e0d..f59174c3 100644 --- a/src/store/chatdoc/actions.ts +++ b/src/store/chatdoc/actions.ts @@ -87,6 +87,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -104,7 +105,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/flux/actions.ts b/src/store/flux/actions.ts index 42b931be..348d7eb3 100644 --- a/src/store/flux/actions.ts +++ b/src/store/flux/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/hailuo/actions.ts b/src/store/hailuo/actions.ts index d268fb58..56f0a1f4 100644 --- a/src/store/hailuo/actions.ts +++ b/src/store/hailuo/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/headshots/actions.ts b/src/store/headshots/actions.ts index dc1ff885..9b8c1ac7 100644 --- a/src/store/headshots/actions.ts +++ b/src/store/headshots/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/kling/actions.ts b/src/store/kling/actions.ts index e1bc9076..5eb1e47b 100644 --- a/src/store/kling/actions.ts +++ b/src/store/kling/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/luma/actions.ts b/src/store/luma/actions.ts index 86e865f4..70016eb5 100644 --- a/src/store/luma/actions.ts +++ b/src/store/luma/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -98,7 +99,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/midjourney/actions.ts b/src/store/midjourney/actions.ts index 08b8320d..86b7652f 100644 --- a/src/store/midjourney/actions.ts +++ b/src/store/midjourney/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/pika/actions.ts b/src/store/pika/actions.ts index 7f0883f8..5ef2534b 100644 --- a/src/store/pika/actions.ts +++ b/src/store/pika/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/qrart/actions.ts b/src/store/qrart/actions.ts index 41c50e3f..8513dd05 100644 --- a/src/store/qrart/actions.ts +++ b/src/store/qrart/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined); diff --git a/src/store/suno/actions.ts b/src/store/suno/actions.ts index 1df48b61..a61859e0 100644 --- a/src/store/suno/actions.ts +++ b/src/store/suno/actions.ts @@ -80,6 +80,7 @@ export const getService = async ({ export const getApplications = async ({ commit, + dispatch, state, rootState }: ActionContext): Promise => { @@ -97,7 +98,7 @@ export const getApplications = async ({ const finalApplication = getFinalApplication(applications.items, currentApplication); if (finalApplication) { console.debug('set final application', finalApplication, finalApplication?.type); - commit('setApplication', finalApplication); + await dispatch('setApplication', finalApplication); } else { console.debug('set application undefined', undefined); commit('setApplication', undefined);