From 0ca8e3b1d043e4564e9b8268046ccadb001dabbd Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 31 Dec 2025 14:47:25 +0800 Subject: [PATCH 1/2] oa --- src/views/flow/index.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/flow/index.vue b/src/views/flow/index.vue index 55eac38..168be4e 100644 --- a/src/views/flow/index.vue +++ b/src/views/flow/index.vue @@ -96,6 +96,16 @@ export default { }, toCreate(flow,cate) { + // 如果 flow.url 是字符串格式 "{url:xxx}",解析并提取 URL + if (flow.url && typeof flow.url === 'string' && flow.url.startsWith('{url:')) { + const match = flow.url.match(/\{url:(.+?)\}/) + if (match && match[1]) { + const urlPath = match[1] + this.$router.push(urlPath) + return + } + } + if(isExternal(flow.url)) { const url = new URL(flow.url) window.open(flow.url,'_blank') @@ -129,7 +139,7 @@ export default {