From 7de94e2ea37803216e5afe9d40e7121c87a5344e Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: 星期四, 24 四月 2025 14:21:14 +0800
Subject: [PATCH] 富文本复制粘贴图片上传至url
---
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