Przeglądaj źródła

fix avatar image show

yb 10 miesięcy temu
rodzic
commit
a266c17523
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/views/Profile/components/UserAvatar.vue

+ 2 - 1
src/views/Profile/components/UserAvatar.vue

@@ -4,7 +4,7 @@
       ref="cropperRef"
       :btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
       :showBtn="false"
-      :value="img"
+      :value="convertImageUrl(img)"
       width="120px"
       @change="handelUpload"
     />
@@ -15,6 +15,7 @@ import { propTypes } from '@/utils/propTypes'
 import { uploadAvatar } from '@/api/system/user/profile'
 import { CropperAvatar } from '@/components/Cropper'
 import { useUserStore } from '@/store/modules/user'
+import { convertImageUrl } from '@/utils/image-helper'
 const { t } = useI18n()