diff --git a/src/api/index.ts b/src/api/index.ts index 6f1b1a2..390bc44 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -166,6 +166,11 @@ interface Liveaddrule{ export async function liveadd(data: any) { const res = await post('live',data); console.log(res) + if(res.code==0){ + message.success(res.msg) + }else{ + message.error(res.msg) + } } /** @@ -196,7 +201,7 @@ export async function setvideo(data?: any) { console.log(data,11110) const res=await put('video/'+data.id,data) if(res.code==0){ - message.success("修改成功") + message.success(res.msg) }else{ message.error(res.msg) }