diff --git a/src/settings.js b/src/settings.js index 3b5958a..2d478b4 100644 --- a/src/settings.js +++ b/src/settings.js @@ -21,3 +21,5 @@ module.exports = { sHeight: '72vh', } } + + 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 {