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 @@ }