🐛 Fixing a bug. 锁屏页头像不显示

This commit is contained in:
lbw 2024-01-03 13:37:56 +08:00
parent be7086eb9a
commit 404851c2e8

View File

@ -28,7 +28,7 @@
<div v-show="state.isShowLoockLogin" class="layout-lock-screen-login"> <div v-show="state.isShowLoockLogin" class="layout-lock-screen-login">
<div class="layout-lock-screen-login-box"> <div class="layout-lock-screen-login-box">
<div class="layout-lock-screen-login-box-img"> <div class="layout-lock-screen-login-box-img">
<img :src="formData.avatar" /> <img :src="baseURL + formData.avatar" />
</div> </div>
<div class="layout-lock-screen-login-box-name">{{ formData.username }}</div> <div class="layout-lock-screen-login-box-name">{{ formData.username }}</div>
<div class="layout-lock-screen-login-box-value"> <div class="layout-lock-screen-login-box-value">
@ -209,7 +209,10 @@ const onLockScreenSubmit = async () => {
} }
}; };
const formData = reactive({}); const formData = reactive({
username:'',
avatar:''
});
// //
onMounted(() => { onMounted(() => {
const data = useUserInfo().userInfos; const data = useUserInfo().userInfos;