From 299968bd321e12d5363f0bdd6f46c37287f9e139 Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期一, 13 一月 2025 15:54:41 +0800 Subject: [PATCH] 修改部分bug以及整合代码 --- Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue b/Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue index 1ee2aea..37864cc 100644 --- a/Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue +++ b/Source/plt-web/plt-web-ui/src/views/system/userInfo/userAvatar.vue @@ -95,11 +95,11 @@ // 鎵撳紑寮瑰嚭灞傜粨鏉熸椂鐨勫洖璋� modalOpened() { this.visible = true; - if (!this.resizeHandler) { - this.resizeHandler = debounce(() => { - this.refresh() - }, 100) - } + // if (!this.resizeHandler) { + // this.resizeHandler = debounce(() => { + // this.refresh() + // }, 100) + // } window.addEventListener("resize", this.resizeHandler) }, // 鍒锋柊缁勪欢 @@ -138,6 +138,7 @@ // 涓婁紶鍥剧墖 uploadImg() { this.$refs.cropper.getCropBlob(data => { + console.log(data); let formData = new FormData(); formData.append("avatarfile", data, this.options.filename); uploadAvatar(formData).then(response => { -- Gitblit v1.9.3