Skip to content

Commit

Permalink
Fix suno (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf-github-user authored Sep 10, 2024
1 parent a16fba9 commit e9f97f9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix suno",
"packageName": "@acedatacloud/nexior",
"email": "1348977728@qq.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion src/components/suno/config/PromptInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
type="textarea"
class="prompt"
:placeholder="$t('suno.placeholder.prompt')"
:maxlength="300"
:maxlength="200"
show-word-limit
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/suno/config/StyleInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
type="textarea"
class="style"
:placeholder="$t('suno.placeholder.style')"
:maxlength="300"
:maxlength="120"
show-word-limit
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/suno/config/TitleInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
type="textarea"
class="title"
:placeholder="$t('suno.placeholder.title')"
:maxlength="300"
:maxlength="80"
show-word-limit
/>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/pages/suno/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ 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
})
.then(() => {
ElMessage.success(this.$t('suno.message.startTaskSuccess'));
})
.catch(() => {
ElMessage.error(this.$t('suno.message.startTaskFailed'));
.catch((error) => {
ElMessage.error(error?.response?.data?.error?.message || this.$t('suno.message.startTaskFailed'));
})
.finally(async () => {
await this.onGetTasks();
Expand Down

0 comments on commit e9f97f9

Please sign in to comment.