|
|
@@ -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()
|
|
|
|
|
|
|