fix:头像问题;

This commit is contained in:
小杨 2024-12-13 13:45:06 +08:00
parent e5bc693f66
commit 243561dfd8
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({ 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, // autoCrop: true, //
autoCropWidth: 400, // autoCropWidth: 400, //
autoCropHeight: 400, // autoCropHeight: 400, //
@ -41,7 +41,6 @@ const options = reactive({
outputType: 'png', // PNG outputType: 'png', // PNG
previews: {} // previews: {} //
}) })
const cropper = ref(null) const cropper = ref(null)
/** 编辑头像 */ /** 编辑头像 */