Merge branch 'master' of http://git.luyuan.tk/luyuan/beelink into zj

This commit is contained in:
asd
2020-10-15 15:45:23 +08:00
8 changed files with 97 additions and 74 deletions

View File

@@ -37,7 +37,7 @@ const del: Get = async function (url: string, data?: unknown){
}
const put: Get = async function (url: string, data?: unknown){
const res = await axios.put(url, {params:data})
const res = await axios.put(url, data)
return res.data;
}

View File

@@ -3,7 +3,7 @@ import store from '@/store';
import { LiveList, LoginData, UserInfo, VideoInfo } from '@/types';
import { saveValue } from '@/utils/common';
import { message } from 'ant-design-vue';
import { del, get, post, setToken } from './base'
import { del, get, post, put, setToken } from './base'
/**
@@ -165,8 +165,8 @@ export async function getstatisticlist() {
* 发布直播
*/
interface Liveaddrule{
code:number,
msg:string
code: number,
msg: string
}
export async function liveadd(data:any) {
const res = await post<Liveaddrule>('live',data);
@@ -360,4 +360,12 @@ interface Language {
export async function getlanguages(): Promise<Language[]>{
return (await get<Language[]>("languages")).data;
}
/**
* 修改我的档案
*/
export async function putmember(data: unknown): Promise<Liveaddrule>{
return (await put<Liveaddrule>(`member/${store.state.userinfo.memberid}`, data) )
}