diff --git a/examples/components/SchemaRender.jsx b/examples/components/SchemaRender.jsx index 13ff5bb0f..2ad371344 100644 --- a/examples/components/SchemaRender.jsx +++ b/examples/components/SchemaRender.jsx @@ -88,9 +88,16 @@ export default function (schema) { const link = normalizeLink(to); return router.isActive(link); }, - jumpTo: to => { + jumpTo: (to, action) => { to = normalizeLink(to); + if (action && action.actionType === 'url') { + action.blank === false + ? (window.location.href = to) + : window.open(to); + return; + } + if (/^https?:\/\//.test(to)) { window.location.replace(to); } else {