| @@ -266,7 +266,9 @@ export default { | |||||
| const res = await doFindVideoById(id); | const res = await doFindVideoById(id); | ||||
| console.log(res, "通过id获取视频"); | console.log(res, "通过id获取视频"); | ||||
| if (res.data.videoStatus == 2) { | if (res.data.videoStatus == 2) { | ||||
| this.isShowCover = false; | |||||
| setTimeout(() => { | |||||
| this.isShowCover = false; | |||||
| }, 2000); | |||||
| Toast.success("视频生成成功!"); | Toast.success("视频生成成功!"); | ||||
| this.$router.push({ | this.$router.push({ | ||||
| path: "/downloadVideo", | path: "/downloadVideo", | ||||
| @@ -279,7 +281,9 @@ export default { | |||||
| } else if (res.data.videoStatus == 3) { | } else if (res.data.videoStatus == 3) { | ||||
| Toast.fail(`视频生成失败!失败原因:${res.data.videoMsg}`); | Toast.fail(`视频生成失败!失败原因:${res.data.videoMsg}`); | ||||
| this.timerOver = true; | this.timerOver = true; | ||||
| this.isShowCover = false; | |||||
| setTimeout(() => { | |||||
| this.isShowCover = false; | |||||
| }, 2000); | |||||
| return; | return; | ||||
| } | } | ||||
| } catch (error) { | } catch (error) { | ||||