瀏覽代碼

🤢 按要求修改视频字段

快乐的梦鱼 1 周之前
父節點
當前提交
7a1145e2e4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/api/CommonContent.ts

+ 4 - 0
src/api/CommonContent.ts

@@ -252,6 +252,9 @@ export class GetContentDetailItem extends DataModel<GetContentDetailItem> {
       if ((!this.images || this.images.length == 0) && this.image) {
         this.images = [ this.image ]
       }
+      if (this.publishVideo) {
+        this.video = this.publishVideo
+      }
     }
   }
 
@@ -265,6 +268,7 @@ export class GetContentDetailItem extends DataModel<GetContentDetailItem> {
   images = [] as string[];
   audio = '';
   video = '';
+  publishVideo?: string;
   desc = '';
   flag ?: string[];
   tags ?: string[];