出现tokne自动切登录

This commit is contained in:
2020-10-14 16:21:40 +08:00
parent 5832f7a0bc
commit b41672ce8b
4 changed files with 50 additions and 13 deletions

View File

@@ -235,3 +235,24 @@ export async function sendsms(phone: string, type: number): Promise<boolean>{
return false;
}
}
/**
* 获取国家数据
*/
interface Countries{
id: number;
name: string;
country_code: string;
}
interface Willsay{
languageid: number;
name: string
}
export async function getarchives(): Promise<[Countries[],Willsay[]]>{
return [(await get<Countries[]>("countries")).data, (await get<Willsay[]>("willsay")).data];
}