guhongwei 4 years ago
parent
commit
57ef5bbc5c
1 changed files with 5 additions and 17 deletions
  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) {