fix: 修复打包后头像图片引用路径出错的问题

This commit is contained in:
yangjiewei
2025-05-29 17:15:23 +08:00
parent c20f346ab2
commit cd6317313b
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex">
<span style="border-left: 1px solid rgb(255 255 255 / 30%); height: 30px; padding-right: 15px"></span>
<div style="margin-right: 12px; height: 30px; margin-top: -10px">
<a-image :height="24" :src="getUserInfo.avatar" :width="24" fallback="src/assets/images/header.jpg" />
<a-image :height="24" :src="getUserInfo.avatar" :width="24" :fallback="headerImg" />
</div>
<span :class="`${prefixCls}__info hidden md:block`">
<span :class="`${prefixCls}__name `" class="truncate">
@ -117,7 +117,8 @@
getUserInfo,
handleMenuClick,
register,
getUseLockPage
getUseLockPage,
headerImg
};
},
methods: {