cxmo 1 年之前
父节点
当前提交
fbb0d2d94d
共有 1 个文件被更改,包括 8 次插入2 次删除
  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){