浏览代码

更新字段

reghao 4 年之前
父节点
当前提交
2668a061f0
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/components/upload/upload-video.vue

+ 4 - 4
src/components/upload/upload-video.vue

@@ -74,7 +74,7 @@
         <v-row justify="center">
           <v-col cols="10">
             <v-textarea
-              v-model="videoInfo.desc"
+              v-model="videoInfo.description"
               label="简介(200字以内)"
               clearable
               placeholder="填写更全面的视频信息,让更多的人找到你!"
@@ -135,9 +135,9 @@ export default {
       ],
       // 提交给后端的数据
       videoInfo: {
-        infoId: '',
+        videoId: '',
         title: '',
-        desc: '',
+        description: '',
         coverUrl: '',
         duration: 0,
         categoryId: -1,
@@ -202,7 +202,7 @@ export default {
     // filepond 组件上传文件完成时调用
     videoUploadSuccess(value) {
       if (value.code === 0) {
-        this.videoInfo.infoId = value.data.infoId
+        this.videoInfo.videoId = value.data.videoId
         this.setTitle(value.data.filename)
         this.videoInfo.duration = value.data.duration
         this.videoInfo.coverUrl = value.data.coverUrl