修改角色后更新菜单
This commit is contained in:
@@ -38,8 +38,8 @@ const loginIn = async (code) => {
|
||||
type: "success",
|
||||
});
|
||||
// 拿用户信息
|
||||
obInformation();
|
||||
router.push("/");
|
||||
await obInformation();
|
||||
// router.push("/");
|
||||
};
|
||||
// 登录判断
|
||||
const token = sessionStorage.getItem("token");
|
||||
@@ -79,7 +79,8 @@ const obInformation = async () => {
|
||||
});
|
||||
|
||||
sessionStorage.setItem("userInfo", JSON.stringify(userInfo));
|
||||
router.push("/");
|
||||
// router.push("/");
|
||||
router.replace("/")
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user