diff --git a/src/components/LiveItem.vue b/src/components/LiveItem.vue index ac3f468..24548d3 100644 --- a/src/components/LiveItem.vue +++ b/src/components/LiveItem.vue @@ -28,7 +28,7 @@
进入直播
-
+
查看回放
@@ -47,7 +47,6 @@ .cover{ width: 100%; height: 127px; - background-color: #0f0; } .play{ position: absolute; diff --git a/src/components/LivePlay.vue b/src/components/LivePlay.vue index 87f4b47..2203926 100644 --- a/src/components/LivePlay.vue +++ b/src/components/LivePlay.vue @@ -1,6 +1,6 @@ -
+
日历
@@ -219,10 +219,15 @@ export default defineComponent({ return store.state.userinfo; }) - function navto(index: number){ - router.push({ - path: nav[index].route - }) + function navto(index: number | string){ + if(typeof index == "number"){ + router.push({ + path: nav[index].route + }) + }else{ + router.push(index) + } + } return { nav,