fix:头像问题; #132

Merged
yangws merged 1 commits from yws_dev into main 2024-12-13 13:46:51 +08:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 243561dfd8 - Show all commits

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)
/** 编辑头像 */