修改角色后更新菜单

This commit is contained in:
1147680382@qq.com
2025-05-26 11:59:09 +08:00
parent 21eeb3c8ad
commit ea912c878c
5 changed files with 34 additions and 28 deletions
+4 -3
View File
@@ -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>