mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-22 21:22:33 +08:00
commit
999704dc61
@ -145,10 +145,10 @@ export const checkToken = (refreshTime: number, refreshLock: boolean) => {
|
||||
* 获取用户信息
|
||||
*/
|
||||
export const getUserInfo = () => {
|
||||
return request({
|
||||
url: '/admin/user/info',
|
||||
method: 'get',
|
||||
});
|
||||
return request({
|
||||
url: '/admin/user/info',
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
|
||||
export const logout = () => {
|
||||
|
@ -122,7 +122,7 @@ export const useUserInfo = defineStore('userInfo', {
|
||||
* @async
|
||||
*/
|
||||
async setUserInfos() {
|
||||
getUserInfo().then((res) => {
|
||||
await getUserInfo().then((res) => {
|
||||
const userInfo: any = {
|
||||
user: res.data.sysUser,
|
||||
time: new Date().getTime(),
|
||||
|
Loading…
Reference in New Issue
Block a user