feat: add user settings page

This commit is contained in:
edgex
2024-03-18 12:06:10 +08:00
parent e1432d7af8
commit dd28b8de12
13 changed files with 407 additions and 3 deletions

21
mock/userInfo.ts Normal file
View File

@@ -0,0 +1,21 @@
import { defineFakeRoute } from "vite-plugin-fake-server/client";
export default defineFakeRoute([
{
url: "/get-user-info",
method: "get",
response: () => {
return {
success: true,
data: {
avatarUrl: "https://avatars.githubusercontent.com/u/44761321",
nickName: "企丸丸",
introduce: "我是幻兽帕鲁里的NO.1",
regionCode: "001002001",
address: "体育路冰鸟密域祭坛地下城",
userName: "admin"
}
};
}
}
]);