From 243561dfd892d20327ec065a4d11f100fb5a6a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Fri, 13 Dec 2024 13:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=A4=B4=E5=83=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/profile/userAvatar.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/src/views/profile/userAvatar.vue b/src/renderer/src/views/profile/userAvatar.vue index 3d3bf4e..e179135 100644 --- a/src/renderer/src/views/profile/userAvatar.vue +++ b/src/renderer/src/views/profile/userAvatar.vue @@ -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) /** 编辑头像 */