guhongwei %!s(int64=4) %!d(string=hai) anos
pai
achega
57ef5bbc5c
Modificáronse 1 ficheiros con 5 adicións e 17 borrados
  1. 5 17
      src/views/achieveLive/detail/videoData.vue

+ 5 - 17
src/views/achieveLive/detail/videoData.vue

@@ -66,23 +66,11 @@ export default {
   methods: {
     ...dock(['fetch']),
     async search() {
-      // let res = await this.fetch(this.id);
-      // if (this.$checkRes(res)) {
-      //   this.$set(this, `videoList`, res.data.videodata);
-      //   this.changeMenu('0', this.videoList[0]);
-      // }
-      let data = [
-        {
-          videointro: '1',
-          file_path: require('@common/src/assets/video1.mp4'),
-        },
-        {
-          videointro: '2',
-          file_path: require('@common/src/assets/video2.mp4'),
-        },
-      ];
-      this.$set(this, `videoList`, data);
-      this.changeMenu('0', this.videoList[0]);
+      let res = await this.fetch(this.id);
+      if (this.$checkRes(res)) {
+        this.$set(this, `videoList`, res.data.videodata);
+        this.changeMenu('0', this.videoList[0]);
+      }
     },
     changeMenu(index, item) {
       if (item) {