|
|
|
|
@ -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 {
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.create-flow-container {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
align-items: start;
|
|
|
|
|
|