perf:发布权限处理

This commit is contained in:
Xwen
2023-12-20 23:29:55 +08:00
parent 7f399d6854
commit 44b3a4e4f7
6 changed files with 78 additions and 59 deletions

View File

@@ -117,7 +117,7 @@ export default function useAuths(opt) {
setToken(token);
try {
// 存储用户信息
await getUserInfo(); // 用户信息
await useUserStore().getInfo(); // 用户信息
// 登录成功后 路由跳转
// 如果有记录当前跳转页面
const currentPath = Session.get("currentPath");