修改之后上传

This commit is contained in:
luyuan 2020-11-09 11:31:13 +08:00
parent 244011e3e4
commit 7e576ce029
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -795,6 +795,7 @@ interface LiveInfo {
deleted_at: null; deleted_at: null;
created_at: string; created_at: string;
updated_at: string; updated_at: string;
livestatus: number;
} }
interface StudentList { interface StudentList {
@ -946,12 +947,14 @@ export async function liveinfo(id: number): Promise<any>{
dateline: liveinfo.dateline, dateline: liveinfo.dateline,
livetime: liveinfo.livetime, livetime: liveinfo.livetime,
livenumber: liveinfo.livenumber, livenumber: liveinfo.livenumber,
desc: liveinfo.desc desc: liveinfo.desc,
status: liveinfo.status
} }
} }
export async function setlive(data: any){ export async function setlive(data: any){
data.status = data.livestatus; // data.status = data.livestatus;
console.log(data)
const info = await put("live/" + data.id, data) const info = await put("live/" + data.id, data)
console.log(info.data) console.log(info.data)
if(info.code==0){ if(info.code==0){