直播一部分

This commit is contained in:
2020-10-16 09:34:55 +08:00
parent ad1c54fdc9
commit bfcf22b479
4 changed files with 30 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import router from '@/router';
import store from '@/store';
import { LiveList, LoginData, UserInfo, VideoInfo } from '@/types';
import { LiveList, LivelistInfo, LoginData, UserInfo, VideoInfo } from '@/types';
import { saveValue } from '@/utils/common';
import { message } from 'ant-design-vue';
import { del, get, post, put, setToken } from './base'
@@ -135,10 +135,10 @@ export async function getvideolist(): Promise<VideoList[]> {
export async function getlivelist(data?:any):Promise<LiveList[]> {
export async function getlivelist(data?:any):Promise<LivelistInfo> {
const res = await get<Array<LiveList>>('live',data);
// console.log(res);
return res.data
console.log(res);
return res;
}
/**