From d3014baa2ec71bff5a8468a9d1943b192ee6959b Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 21 Dec 2025 11:08:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E3=80=90infra=E3=80=91=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E7=AE=A1=E7=90=86=EF=BC=9A100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-source-config/detail/index.vue | 21 +++++++++++++++++-- .../data-source-config/form/index.vue | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pages-infra/data-source-config/detail/index.vue b/src/pages-infra/data-source-config/detail/index.vue index b0fde6a..dd27a41 100644 --- a/src/pages-infra/data-source-config/detail/index.vue +++ b/src/pages-infra/data-source-config/detail/index.vue @@ -12,8 +12,11 @@ - - + + + {{ formData?.url || '-' }} + + @@ -69,6 +72,20 @@ function handleBack() { navigateBackPlus('/pages-infra/data-source-config/index') } +/** 复制文本并提示 */ +function handleCopyText(text?: string, title?: string) { + if (!text || text === '-') { + return + } + uni.setClipboardData({ + data: text, + success: () => { + uni.hideToast() + toast.success(`${title || '内容'}已复制`) + }, + }) +} + /** 加载数据源配置详情 */ async function getDetail() { if (!props.id) { diff --git a/src/pages-infra/data-source-config/form/index.vue b/src/pages-infra/data-source-config/form/index.vue index 4a50811..9650bf3 100644 --- a/src/pages-infra/data-source-config/form/index.vue +++ b/src/pages-infra/data-source-config/form/index.vue @@ -142,4 +142,4 @@ onMounted(() => { \ No newline at end of file +