cxmo 1 year ago
parent
commit
fbb0d2d94d
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/training_manage/modifyVideoPage.vue

+ 8 - 2
src/views/training_manage/modifyVideoPage.vue

@@ -299,8 +299,14 @@ export default {
         //发布视频
         async publishVideo(){
             await this.modifyVideo('publish');
-            this.$message.success("发布成功")
-            this.changeRoute();
+            VideoInterface.publishVideo({
+                VideoId:this.form.VideoId,
+                PublishState:1
+            }).then(res=>{
+                if(res.Ret!==200) return;
+                this.$message.success("发布成功");
+                this.changeRoute();
+            })
         },
         changeRoute(){
             if(ALOSSAbortCheckpoint){