From 1c2da6dfb1e23fa38c58ada5d7e98f91ae2d738e Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 11 九月 2024 14:19:21 +0800 Subject: [PATCH] 修改导出文件名称 --- src/views/system/user/profile/userAvatar.vue | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/views/system/user/profile/userAvatar.vue b/src/views/system/user/profile/userAvatar.vue index edf3016..b99f58d 100644 --- a/src/views/system/user/profile/userAvatar.vue +++ b/src/views/system/user/profile/userAvatar.vue @@ -87,25 +87,31 @@ function editCropper() { open.value = true; } + /** 鎵撳紑寮瑰嚭灞傜粨鏉熸椂鐨勫洖璋� */ function modalOpened() { visible.value = true; } + /** 瑕嗙洊榛樿涓婁紶琛屼负 */ function requestUpload() {} + /** 鍚戝乏鏃嬭浆 */ function rotateLeft() { proxy.$refs.cropper.rotateLeft(); } + /** 鍚戝彸鏃嬭浆 */ function rotateRight() { proxy.$refs.cropper.rotateRight(); } + /** 鍥剧墖缂╂斁 */ function changeScale(num) { num = num || 1; proxy.$refs.cropper.changeScale(num); } + /** 涓婁紶棰勫鐞� */ function beforeUpload(file) { if (file.type.indexOf("image/") == -1) { @@ -119,6 +125,7 @@ }; } } + /** 涓婁紶鍥剧墖 */ function uploadImg() { proxy.$refs.cropper.getCropBlob(data => { @@ -133,10 +140,12 @@ }); }); } + /** 瀹炴椂棰勮 */ function realTime(data) { options.previews = data; } + /** 鍏抽棴绐楀彛 */ function closeDialog() { options.img = userStore.avatar; -- Gitblit v1.9.3