guhongwei 4 jaren geleden
bovenliggende
commit
02a9cfea74
1 gewijzigde bestanden met toevoegingen van 3 en 6 verwijderingen
  1. 3 6
      src/views/channel/detail.vue

+ 3 - 6
src/views/channel/detail.vue

@@ -77,8 +77,6 @@ export default {
   },
   async created() {
     await this.search();
-    this.videoUrl = this.form.videodata[0].url;
-    this.change(0, videoUrl);
   },
   methods: {
     ...channel(['query', 'fetch']),
@@ -88,13 +86,12 @@ export default {
         this.$set(this, `form`, res.data);
       }
     },
+    change(index, item) {
+      console.log(index, item);
+    },
     back() {
       this.$router.push({ path: 'index' });
     },
-    change(index, item) {
-      this.changeColor = index;
-      this.videoUrl = item.url;
-    },
   },
   computed: {
     ...mapState(['user']),