Sfoglia il codice sorgente

fix: 修改图片路径

lixuan 3 settimane fa
parent
commit
7758830c44

+ 1 - 1
apps/web-velofex/src/layouts/header/header.vue

@@ -113,7 +113,7 @@ watch(
       >
         <img
           v-if="userStore.userInfo?.avatar"
-          :avatar="`/File/Download?fileId=${userStore.userInfo?.avatar}`"
+          :src="`/File/Download?fileId=${userStore.userInfo?.avatar}`"
           class="cursor-pointer"
           @click="openLogin"
         />

+ 1 - 1
apps/web-velofex/src/views/dashboard/home/delivery-partners.vue

@@ -96,7 +96,7 @@ watch(
         <img
           v-for="index in 4"
           :key="index"
-          :src="`/src/assets/image/user${index}.png`"
+          :src="`/Content/Images/user${index}.png`"
           :style="{ marginLeft: index !== 1 ? '-35px' : '0' }"
           :text="index"
           alt=""

+ 1 - 1
apps/web-velofex/src/views/dashboard/home/user-info.vue

@@ -37,7 +37,7 @@ function handleEditProfile() {
         v-if="userStore.userInfo?.avatar"
         :src="`/File/Download?fileId=${userStore.userInfo?.avatar}`"
         alt=""
-        class="h-[52px] w-[52px] object-contain"
+        class="h-[52px] w-[52px] rounded-[50%] object-contain"
       />
       <img
         v-else