修复登录后,菜单未正确显示问题
This commit is contained in:
parent
0471fd0169
commit
50595df30a
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue