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"
|
type="textarea"
|
||||||
class="prompt"
|
class="prompt"
|
||||||
:placeholder="$t('suno.placeholder.prompt')"
|
:placeholder="$t('suno.placeholder.prompt')"
|
||||||
:maxlength="300"
|
:maxlength="200"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
class="style"
|
class="style"
|
||||||
:placeholder="$t('suno.placeholder.style')"
|
:placeholder="$t('suno.placeholder.style')"
|
||||||
:maxlength="300"
|
:maxlength="120"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
type="textarea"
|
type="textarea"
|
||||||
class="title"
|
class="title"
|
||||||
:placeholder="$t('suno.placeholder.title')"
|
:placeholder="$t('suno.placeholder.title')"
|
||||||
:maxlength="300"
|
:maxlength="80"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ export default defineComponent({
|
|||||||
console.error('no token specified');
|
console.error('no token specified');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ElMessage.success(this.$t('suno.message.startingTask'));
|
ElMessage.info(this.$t('suno.message.startingTask'));
|
||||||
sunoOperator
|
sunoOperator
|
||||||
.audio(request, {
|
.audio(request, {
|
||||||
token
|
token
|
||||||
@@ -176,8 +176,8 @@ export default defineComponent({
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
ElMessage.success(this.$t('suno.message.startTaskSuccess'));
|
ElMessage.success(this.$t('suno.message.startTaskSuccess'));
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((error) => {
|
||||||
ElMessage.error(this.$t('suno.message.startTaskFailed'));
|
ElMessage.error(error?.response?.data?.error?.message || this.$t('suno.message.startTaskFailed'));
|
||||||
})
|
})
|
||||||
.finally(async () => {
|
.finally(async () => {
|
||||||
await this.onGetTasks();
|
await this.onGetTasks();
|
||||||
|
|||||||
Reference in new issue
Block a user