weizong song 3 months ago
commit 7539668f74

@ -21,3 +21,5 @@ module.exports = {
sHeight: '72vh', sHeight: '72vh',
} }
} }

@ -96,6 +96,16 @@ export default {
}, },
toCreate(flow,cate) { 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)) { if(isExternal(flow.url)) {
const url = new URL(flow.url) const url = new URL(flow.url)
window.open(flow.url,'_blank') window.open(flow.url,'_blank')
@ -129,7 +139,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.create-flow-container { .create-flow-container {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: 1fr;
gap: 10px; gap: 10px;
padding: 20px; padding: 20px;
align-items: start; align-items: start;

Loading…
Cancel
Save