diff --git a/pages/user/profile/index.vue b/pages/user/profile/index.vue index 6ca570c..6d54bd7 100644 --- a/pages/user/profile/index.vue +++ b/pages/user/profile/index.vue @@ -7,7 +7,7 @@ @@ -148,7 +148,7 @@ const { t } = useI18n() const userStore = useUserStore() // 默认头像 -const defaultAvatar = '/static/home_icon.png' +const defaultAvatar = '/static/logo.png' // 字段列表 const fields = computed(() => [ @@ -200,10 +200,9 @@ const avatarUrl = ref('') const userInfo = ref({}) // 用户信息 const getData = async () => { const res = await getUserInfo() - if (res.result) { - userStore.setUserInfo(res.result) - userInfo.value = res.result - } + userStore.setUserInfo(res.result) + userInfo.value = res.result + userInfo.value.avatar = res.result.avatar || defaultAvatar } /** diff --git a/style/ui.scss b/style/ui.scss index 940e4b8..7e71e68 100644 --- a/style/ui.scss +++ b/style/ui.scss @@ -109,10 +109,10 @@ uni-textarea { // popup .wd-popup { - z-index: 9999 !important; + z-index: 99 !important; } .wd-overlay { - z-index: 9998 !important; + z-index: 98 !important; } .wd-popup-wrapper { .wd-popup {