修复自助服务头像回显问题

This commit is contained in:
ywyonui 2025-06-23 17:15:11 +08:00
parent 3fd776b750
commit 60cf660a05

View File

@ -14,7 +14,7 @@
<view class="teacher-avatar"> <view class="teacher-avatar">
<image <image
class="avatar-image" class="avatar-image"
:src="js.headPic || '/static/base/default-avatar.png'" :src="jsTx || '/static/base/default-avatar.png'"
mode="aspectFill" mode="aspectFill"
></image> ></image>
</view> </view>
@ -97,6 +97,8 @@ import { set } from "lodash";
import { reactive, ref } from "vue"; import { reactive, ref } from "vue";
const { logout, getUser, getJs, setJs } = useUserStore(); const { logout, getUser, getJs, setJs } = useUserStore();
const jsTx = computed(() => imagUrl(getUser.profilePhoto));
const js = computed(() => getJs); const js = computed(() => getJs);
// //
const jsWork = ref<any>({ const jsWork = ref<any>({