diff --git a/src/layouts/default/header/components/user-dropdown/index.vue b/src/layouts/default/header/components/user-dropdown/index.vue index 183a39c..53c7f89 100644 --- a/src/layouts/default/header/components/user-dropdown/index.vue +++ b/src/layouts/default/header/components/user-dropdown/index.vue @@ -57,6 +57,7 @@ import { removeAuthCache, setAuthCache } from '/src/utils/auth'; import { getFileAccessHttpUrl } from '/@/utils/common/compUtils'; import { getRefPromise } from '/@/utils/index'; +import { defHttp } from '/@/utils/http/axios'; type MenuEvent = 'logout' | 'doc' | 'lock' | 'cache' | 'depart'; const { createMessage } = useMessage(); @@ -150,11 +151,14 @@ await getRefPromise(updatePasswordRef); updatePasswordRef.value.show(userStore.getUserInfo.username); } - console.log('userStore.getUserInfo',userStore.getUserInfo); var loginInfo = userStore.getUserInfo; - if(loginInfo.passwordType == '0'){ - updatePassword(); - } + defHttp.get({url: '/sys/user/queryById', params: {id: loginInfo.id}}).then(res => { + if(res.passwordType == '0'){ + updatePassword(); + } + }); + + // update-end--author:liaozhiyang---date:20230901---for:【QQYUN-6333】空路由问题—首次访问资源太大 function handleMenuClick(e: { key: MenuEvent }) { switch (e.key) {