|
@@ -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) {
|