31 lines
530 B
Vue
31 lines
530 B
Vue
<template>
|
|
<div class="tv">
|
|
<tv-list :list="tvData"></tv-list>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tvData: []
|
|
}
|
|
},
|
|
created() {
|
|
this.getTv();
|
|
},
|
|
activated() {
|
|
console.log("activated");
|
|
},
|
|
methods: {
|
|
async getTv() {
|
|
this.tvData = await this.$http.index.tv();
|
|
console.log(this.tvData);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
</style> |