diff --git a/package.json b/package.json index a463b16..25aa472 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "core-js": "^3.6.5", "dayjs": "^1.9.1", "postcss-pxtorem": "^5.1.1", + "tim-js-sdk": "^2.8.0", "trtc-js-sdk": "^4.6.5", "vod-js-sdk-v6": "^1.4.10", "vue": "^3.0.0-0", diff --git a/src/components/LivePlay.vue b/src/components/LivePlay.vue index dd1782a..c51ce12 100644 --- a/src/components/LivePlay.vue +++ b/src/components/LivePlay.vue @@ -101,7 +101,10 @@ export default defineComponent({ // todo 修改后报错 function kaishi(){ if(props.info != undefined){ - livestart(props.info.liveid) + const id = props.info.liveid; + livestart(id).then(()=>{ + router.push("/regime/liveing?id=" + id) + }) } } // const liveinfo = ref(props.liveinfo) diff --git a/src/views/regime/Livedetail.vue b/src/views/regime/Livedetail.vue index 66fc3ba..047d52e 100644 --- a/src/views/regime/Livedetail.vue +++ b/src/views/regime/Livedetail.vue @@ -36,6 +36,7 @@ import LiveCount from "@/components/LiveCount.vue"; import VideoReview from "@/components/VideoReview.vue"; import { useRoute } from "vue-router"; import { getliveinfo } from "@/api"; +import router from '@/router'; export default defineComponent({ components: { LiveCount, diff --git a/src/views/regime/Liveing.vue b/src/views/regime/Liveing.vue index 23af1e7..73b36e2 100644 --- a/src/views/regime/Liveing.vue +++ b/src/views/regime/Liveing.vue @@ -5,7 +5,7 @@
直播页面
- +
@@ -30,13 +30,13 @@
-
-
+
+
-
asdsada
+
{{item.name}}
-
+ +
+
+
测试
+ +
+
+ +

您确认关闭直播吗

+