增加用户中心、用户注册登录

This commit is contained in:
jiangh277
2025-12-26 15:12:49 +08:00
parent 1eb1dafe1e
commit 07e011febd
43 changed files with 2006 additions and 611 deletions

8
src/utils/userUtils.ts Normal file
View File

@@ -0,0 +1,8 @@
export const getUser = () => {
return JSON.parse(localStorage.getItem('timeline_user') ?? "{}");
}
export const getAuthization = () => {
const user = getUser();
return `Bearer+${user.accessToken}`;
}