添加《实名认证》模块的一级认证页面。尚未完工。
This commit is contained in:
9
src/pages/identity/service.ts
Normal file
9
src/pages/identity/service.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import http from '@/utils/http';
|
||||
|
||||
export async function changeName(nickname: string) {
|
||||
const { ok, msg } = await http.post('/user/chnickname', { nickname });
|
||||
if (ok) {
|
||||
return true;
|
||||
}
|
||||
throw Error(msg);
|
||||
}
|
||||
Reference in New Issue
Block a user