From adaac86f04276d18f0728ec81246fee564ba1e60 Mon Sep 17 00:00:00 2001 From: jlzhou <12020042@qq.com> Date: Fri, 9 May 2025 16:52:50 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=9C=A8=E7=BA=BF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=AE=9A=E4=B9=89=E5=8F=AF=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E6=BA=90=E6=96=87=E4=BB=B6source=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-ui/src/components/Editor/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin-ui/src/components/Editor/index.vue b/admin-ui/src/components/Editor/index.vue index 634b676..943ff30 100644 --- a/admin-ui/src/components/Editor/index.vue +++ b/admin-ui/src/components/Editor/index.vue @@ -31,9 +31,9 @@ import { ref, computed, onMounted, getCurrentInstance } from 'vue' // Quill.register(ImageResize) -const source = ref(false) -const height = ref(100) + + onMounted(async () => { await proxy.$nextTick() @@ -80,9 +80,16 @@ const props = defineProps({ server: { type: String, default: "/system/oss/upload" + }, + source: { + type: Boolean, + default: false, } }); +const source = ref(props.source); +const height = ref(props.height || props.minHeight || 100); + const { proxy } = getCurrentInstance(); // 上传的图片服务器地址 const uploadUrl = computed(() => import.meta.env.VITE_APP_BASE_API + props.server);