From 41984882143fcbe756930b335af2bb522f5e05ee Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Mon, 26 Oct 2020 11:10:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E7=9B=B4=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 11 ++++++++++- src/components/LivePlay.vue | 18 ++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ff30ef3..923de5d 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -943,4 +943,13 @@ export async function feedback(text: string) { }else{ message.error(res.msg) } -} \ No newline at end of file +} + +export async function livestart(id: string) { + const res = await put("live/" + id, {status : 1}) + if(res.code == 0){ + message.success(res.msg) + }else{ + message.error(res.msg) + } +} diff --git a/src/components/LivePlay.vue b/src/components/LivePlay.vue index e3a801b..dd1782a 100644 --- a/src/components/LivePlay.vue +++ b/src/components/LivePlay.vue @@ -20,9 +20,15 @@ 5.0分 -
+
+
编辑信息 +
+
+ 开始直播 +
+
@@ -77,6 +83,7 @@ }