Fix suno (#138)
This commit is contained in:
1 parent
a16fba9acf
commit
e9f97f9785
5 files changed
+13
-6
No files matched your search
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"comment": "fix suno",
|
||||
"packageName": "@acedatacloud/nexior",
|
||||
"email": "1348977728@qq.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
type="textarea"
|
||||
class="prompt"
|
||||
:placeholder="$t('suno.placeholder.prompt')"
|
||||
:maxlength="300"
|
||||
:maxlength="200"
|
||||
show-word-limit
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
type="textarea"
|
||||
class="style"
|
||||
:placeholder="$t('suno.placeholder.style')"
|
||||
:maxlength="300"
|
||||
:maxlength="120"
|
||||
show-word-limit
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
type="textarea"
|
||||
class="title"
|
||||
:placeholder="$t('suno.placeholder.title')"
|
||||
:maxlength="300"
|
||||
:maxlength="80"
|
||||
show-word-limit
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
@@ -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?.response?.data?.error?.message || this.$t('suno.message.startTaskFailed'));
|
||||
})
|
||||
.finally(async () => {
|
||||
await this.onGetTasks();
|
||||
|
||||
Reference in new issue
Block a user