订阅列表
@@ -74,6 +74,7 @@
import { defineComponent, onMounted, ref } from "vue";
import NavBottom from "@/components/NavBottom.vue";
import { getstatisticlist } from "@/api"
+import router from '@/router';
export default defineComponent({
name: "Liststatistic",
components: {
@@ -84,8 +85,24 @@ export default defineComponent({
onMounted(async ()=>{
statistics.value = await getstatisticlist()
})
+ function navto(e?: number){
+ switch(e){
+ case 1:
+ router.push("/regime/live");
+ break;
+ case 2:
+ router.push("/regime/video")
+ break;
+ case 3:
+ router.push("/regime/subscriber")
+ }
+ }
+
// console.log(statistics,111)
- return {statistics};
+ return {
+ statistics,
+ navto
+ };
},
});