From 8f035305a3dd8d871f971e0a3beb2f3c4cf7f56e Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 5 Mar 2026 13:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=BA=E6=9E=84=E8=B4=9F?= =?UTF-8?q?=E8=B4=A3=E4=BA=BA=E7=99=BB=E5=BD=95=E5=90=8E=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4=E5=AF=86=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../header/components/user-dropdown/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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) {