添加《实名认证》模块的一级认证页面。尚未完工。

This commit is contained in:
luk.lu
2019-10-12 07:37:51 +08:00
parent 10e3c39f3c
commit 9c92fd0d33
10 changed files with 237 additions and 5 deletions

View 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);
}