修复登录后,菜单未正确显示问题

This commit is contained in:
junleea 2024-12-18 23:42:34 +08:00
parent 0471fd0169
commit 50595df30a
1 changed files with 2 additions and 1 deletions

View File

@ -241,6 +241,7 @@ const onRegister = async () => {
let now = new Date();
localStorage.setItem("end_time", now.setDate(now.getHours() + 12)); //
//token.value= result.data;
await getMyUserInfo(result.data.id);
router.push("/user");
}
};
@ -336,7 +337,7 @@ const getMyUserInfo = async (id) => {
try {
let tokenData ={
token: localStorage.getItem("token"),
uid: id,
id: id,
}
result = await GetUserInfoService(tokenData);
if (result.code === 0) {