From 7bf5fc86de19cca2877fe5a2e4aeb6238d68095b Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 15 Oct 2020 19:33:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=B3=E8=BD=AC=E6=97=A5?= =?UTF-8?q?=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LiveItem.vue | 3 +-- src/components/LivePlay.vue | 2 +- src/components/NavTop.vue | 15 ++++++++++----- 3 files changed, 12 insertions(+), 8 deletions(-) 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,