From 18d777ae0f136900d8c90fe5d308995cc75e4de0 Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Tue, 10 Sep 2024 11:57:54 +0800 Subject: [PATCH 1/5] fix suno --- src/components/suno/config/PromptInput.vue | 2 +- src/components/suno/config/StyleInput.vue | 2 +- src/components/suno/config/TitleInput.vue | 2 +- src/pages/suno/Index.vue | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/suno/config/PromptInput.vue b/src/components/suno/config/PromptInput.vue index c3ff35e1..978df2c2 100644 --- a/src/components/suno/config/PromptInput.vue +++ b/src/components/suno/config/PromptInput.vue @@ -10,7 +10,7 @@ type="textarea" class="prompt" :placeholder="$t('suno.placeholder.prompt')" - :maxlength="300" + :maxlength="200" show-word-limit /> diff --git a/src/components/suno/config/StyleInput.vue b/src/components/suno/config/StyleInput.vue index 5339c1a2..e20545c8 100644 --- a/src/components/suno/config/StyleInput.vue +++ b/src/components/suno/config/StyleInput.vue @@ -10,7 +10,7 @@ type="textarea" class="style" :placeholder="$t('suno.placeholder.style')" - :maxlength="300" + :maxlength="120" show-word-limit /> diff --git a/src/components/suno/config/TitleInput.vue b/src/components/suno/config/TitleInput.vue index c0e87eff..a8090c09 100644 --- a/src/components/suno/config/TitleInput.vue +++ b/src/components/suno/config/TitleInput.vue @@ -10,7 +10,7 @@ type="textarea" class="title" :placeholder="$t('suno.placeholder.title')" - :maxlength="300" + :maxlength="80" show-word-limit /> diff --git a/src/pages/suno/Index.vue b/src/pages/suno/Index.vue index b500b14e..acf0a870 100644 --- a/src/pages/suno/Index.vue +++ b/src/pages/suno/Index.vue @@ -176,8 +176,8 @@ export default defineComponent({ .then(() => { ElMessage.success(this.$t('suno.message.startTaskSuccess')); }) - .catch(() => { - ElMessage.error(this.$t('suno.message.startTaskFailed')); + .catch((error) => { + ElMessage.error(error.respnse.data.error.message); }) .finally(async () => { await this.onGetTasks(); From c993679571361dd5c238c0d3cfcd3b55fb73969d Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Tue, 10 Sep 2024 12:02:06 +0800 Subject: [PATCH 2/5] fix --- src/pages/suno/Index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/suno/Index.vue b/src/pages/suno/Index.vue index acf0a870..65b04196 100644 --- a/src/pages/suno/Index.vue +++ b/src/pages/suno/Index.vue @@ -177,7 +177,7 @@ export default defineComponent({ ElMessage.success(this.$t('suno.message.startTaskSuccess')); }) .catch((error) => { - ElMessage.error(error.respnse.data.error.message); + ElMessage.error(error?.respnse?.data?.error?.message || this.$t('suno.message.startTaskFailed')); }) .finally(async () => { await this.onGetTasks(); From 9388d6b95b94a1bf3b12a204d59cf62d028348d2 Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Tue, 10 Sep 2024 12:02:51 +0800 Subject: [PATCH 3/5] add change --- ...acloud-nexior-01ecc2e4-1ad5-4383-8a40-af1a41da8ede.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 change/@acedatacloud-nexior-01ecc2e4-1ad5-4383-8a40-af1a41da8ede.json diff --git a/change/@acedatacloud-nexior-01ecc2e4-1ad5-4383-8a40-af1a41da8ede.json b/change/@acedatacloud-nexior-01ecc2e4-1ad5-4383-8a40-af1a41da8ede.json new file mode 100644 index 00000000..1610352c --- /dev/null +++ b/change/@acedatacloud-nexior-01ecc2e4-1ad5-4383-8a40-af1a41da8ede.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "fix suno", + "packageName": "@acedatacloud/nexior", + "email": "1348977728@qq.com", + "dependentChangeType": "patch" +} From a7ef89a9105549f2a9a8a86b1f182bbdddf30f01 Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Tue, 10 Sep 2024 12:10:32 +0800 Subject: [PATCH 4/5] fix --- src/pages/suno/Index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/suno/Index.vue b/src/pages/suno/Index.vue index 65b04196..21380b2a 100644 --- a/src/pages/suno/Index.vue +++ b/src/pages/suno/Index.vue @@ -177,7 +177,7 @@ export default defineComponent({ ElMessage.success(this.$t('suno.message.startTaskSuccess')); }) .catch((error) => { - ElMessage.error(error?.respnse?.data?.error?.message || this.$t('suno.message.startTaskFailed')); + ElMessage.error(error?.response?.data?.error?.message || this.$t('suno.message.startTaskFailed')); }) .finally(async () => { await this.onGetTasks(); From bfd2416ce8374eb45a151d5227bb97acaa2be3cc Mon Sep 17 00:00:00 2001 From: hyf-github-user <1348977728@qq.com> Date: Tue, 10 Sep 2024 12:13:13 +0800 Subject: [PATCH 5/5] fix --- src/pages/suno/Index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/suno/Index.vue b/src/pages/suno/Index.vue index 21380b2a..5facc350 100644 --- a/src/pages/suno/Index.vue +++ b/src/pages/suno/Index.vue @@ -168,7 +168,7 @@ export default defineComponent({ console.error('no token specified'); return; } - ElMessage.success(this.$t('suno.message.startingTask')); + ElMessage.info(this.$t('suno.message.startingTask')); sunoOperator .audio(request, { token