| xqd
@@ -1157,9 +1157,13 @@
|
|
|
}
|
|
|
console.log('创建数字人参数:', parmas);
|
|
|
// return
|
|
|
+
|
|
|
+ this.isGenerate = true
|
|
|
+ this.robotName = ''
|
|
|
+ this.textAreaValue = ""
|
|
|
+ this.audioUrl = ''
|
|
|
let res = await generateWork(parmas)
|
|
|
if (res.code == 0) {
|
|
|
- this.isGenerate = true
|
|
|
uni.showToast({
|
|
|
title: '创建数字人成功!',
|
|
|
icon: 'success'
|
| xqd
@@ -1168,11 +1172,13 @@
|
|
|
setTimeout(() => {
|
|
|
uni.navigateBack()
|
|
|
}, 1500)
|
|
|
+ this.isGenerate = false
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
|
icon: 'none'
|
|
|
})
|
|
|
+ this.isGenerate = false
|
|
|
}
|
|
|
console.log('生成数字人返回值:', res);
|
|
|
},
|