Parcourir la source

fix: program cannot be previewed

Casper Dai il y a 3 ans
Parent
commit
24851a0dd3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/components/Schedule/ScheduleSwiper/index.vue

+ 2 - 2
src/components/Schedule/ScheduleSwiper/index.vue

@@ -123,9 +123,9 @@ export default {
         ],
         cols: [
           { type: 'selection' },
-          { label: '缩略图', type: 'asset', render ({ img }) {
+          { label: '缩略图', type: 'asset', render ({ id, img }) {
             return img
-              ? { thumbnail: img }
+              ? { id, thumbnail: img }
               : null
           }, on: this.onView },
           { prop: 'name', label: '节目名称' }