Browse Source

SYHX-1772

deli_scp
王宇飞 4 months ago
parent
commit
47bca0902b
  1. 2
      src/layout/components/UserInfo/src/UserInfo.vue
  2. 4
      src/views/login/components/LoginForm.vue

2
src/layout/components/UserInfo/src/UserInfo.vue

@ -63,7 +63,7 @@ const toDocument = () => {
<ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" /> <ElAvatar :src="avatar" alt="" class="w-[calc(var(--logo-height)-25px)] rounded-[50%]" />
<div class="pl-[5px] text-14px text-[var(--top-header-text-color)] <lg:hidden" style="display: flex; flex-direction: column;color:#ffffff"> <div class="pl-[5px] text-14px text-[var(--top-header-text-color)] <lg:hidden" style="display: flex; flex-direction: column;color:#ffffff">
<span> {{ userName }} </span> <span> {{ userName }} </span>
<span style="margin-top: 5px;text-align:center">{{ tenant.text }}</span> <span style="margin-top: 5px;text-align:center">{{ tenant?tenant.text:'' }}</span>
</div> </div>
</div> </div>
<template #dropdown> <template #dropdown>

4
src/views/login/components/LoginForm.vue

@ -297,6 +297,9 @@
getCode() getCode()
return return
} }
const { wsCache } = useCache()
//
wsCache.clear()
loading.value = ElLoading.service({ loading.value = ElLoading.service({
lock: true, lock: true,
text: '正在加载系统中...', text: '正在加载系统中...',
@ -329,7 +332,6 @@
replace({ path: redirect.value || permissionStore.addRouters[0].path }) replace({ path: redirect.value || permissionStore.addRouters[0].path })
} }
// //
const { wsCache } = useCache()
wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList()) wsCache.set(CACHE_KEY.DEPT, await DeptApi.getSimpleDeptList())
}catch (e){ }catch (e){
if(e.code === 1002000016){ if(e.code === 1002000016){

Loading…
Cancel
Save