From a4209397289e91a2069b1fffb9fed8d83f319bb2 Mon Sep 17 00:00:00 2001 From: cfdxkk Date: Mon, 8 Jan 2024 18:49:56 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B6=88=E9=99=A4=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=BC=82=E5=91=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/settings/profile.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/settings/profile.vue b/pages/settings/profile.vue index b1e5b632..8655fbdb 100755 --- a/pages/settings/profile.vue +++ b/pages/settings/profile.vue @@ -27,7 +27,7 @@ * 如果有上传图片,则开启图片裁切器(即:用户选择了本地文件的事件) * @param e 应为用户上传文件的 input 元素的 change 事件 */ - function handleOpenAvatarCropper(e: Event | undefined) { + function handleOpenAvatarCropper(e?: Event) { const fileInput = e?.target as HTMLInputElement | undefined; if (fileInput?.files?.[0]) { const image = fileInput.files[0];