Ver código fonte

优化代码

dsy 1 semana atrás
pai
commit
e282682214

+ 3 - 1
src/components/CommonPreview.vue

@@ -453,7 +453,9 @@ export default {
 
     getProjectInfo() {
       GetProjectInfo({ id: this.projectId }).then(({ project_info }) => {
-        this.project = project_info;
+        if (project_info.cover_image_file_url) {
+          this.project = project_info;
+        }
       });
     },
 

+ 1 - 1
src/views/book/courseware/create/components/base/common/UploadFile.vue

@@ -428,7 +428,7 @@ export default {
         let obj = {
           xuhao: '',
           isEdit: false,
-          file_name: file_name,
+          file_name,
         };
         this.$set(this.content.file_info, file_id, obj);
       }

+ 1 - 1
src/views/book/courseware/preview/components/h5_games/H5GamesPreview.vue

@@ -39,7 +39,7 @@ export default {
   },
   watch: {
     'data.file_list.length': {
-      handler(val) {
+      handler() {
         this.initData();
       },
     },