修改报错
This commit is contained in:
@@ -565,7 +565,7 @@ export async function addcomment(data?:any):Promise<void> {
|
||||
code: number;
|
||||
msg: string;
|
||||
}
|
||||
export async function checkuser(data?:any){
|
||||
export async function checkuser(data?: any) {
|
||||
const newdata={number:""}
|
||||
newdata.number=data.phone
|
||||
const res = await get<CheckuserRule>('checkUser',newdata);
|
||||
@@ -592,6 +592,36 @@ export async function getquhaolist() {
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取时区列表
|
||||
*/
|
||||
export async function getzonelist():Promise<any>{
|
||||
const res=await get("timezones")
|
||||
// console.log(res)
|
||||
return res.data
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改时区 货币 语言
|
||||
*/
|
||||
export async function editsystemsetting(e?: any): Promise<boolean> {
|
||||
let newdata={}
|
||||
newdata=e
|
||||
const res = await put(`member/${store.state.userinfo.memberid}`,newdata);
|
||||
console.log(res)
|
||||
if(res.code == 0){
|
||||
message.success("修改成功")
|
||||
return true;
|
||||
}else{
|
||||
message.error(res.msg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 货币列表
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* 发送验证码
|
||||
|
||||
Reference in New Issue
Block a user