出现tokne自动切登录
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user