Files
ClassContent/项目合集/在包河/code/src/views/Tv.vue
2025-02-06 17:38:35 +08:00

46 lines
717 B
Vue

<template lang="pug">
.TV
TvList(:list-data="list" :is-show="false" @change="EnterInfo")
</template>
<script>
import TvList from "@/components/TvList"
export default {
name: "Tv",
components: {
TvList
},
data() {
return {
list: [],
params: {
page: 1,
count: 15
}
}
},
async created() {
await this.GetTvList()
},
methods: {
EnterInfo(index) {
this.$router.push({
path: '/TvInfo',
query: {
id: 'index'
}
})
},
async GetTvList() {
let res = await this.$http.TvService.TvList(this.params);
this.list = res;
console.log(res)
}
}
}
</script>
<style scoped>
</style>