Merge pull request 'fix:头像问题;' (#132) from yws_dev into main

Reviewed-on: #132
This commit is contained in:
yangws 2024-12-13 13:46:49 +08:00
commit 809c639ce9
1 changed files with 1 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const dev_api = ref(import.meta.env.VITE_APP_BASE_API)
//
const options = reactive({
img: userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api + userStore.user.avatar, //
img: userStore.user.avatar ==='/img/avatar-default.jpg' ? defaultUserImg : dev_api.value + userStore.user.avatar, //
autoCrop: true, //
autoCropWidth: 400, //
autoCropHeight: 400, //
@ -41,7 +41,6 @@ const options = reactive({
outputType: 'png', // PNG
previews: {} //
})
const cropper = ref(null)
/** 编辑头像 */