reghao 4 лет назад
Родитель
Сommit
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