李万涛 hace 1 año
padre
commit
5a9f8ae6cc
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      pages/robot/generate/index.vue

+ 7 - 1
pages/robot/generate/index.vue

xqd 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'
@@ -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);
 			},