fix play
This commit is contained in:
parent
15d2fab97b
commit
6bfc4cf98b
|
@ -135,9 +135,16 @@ export default class PlayGround extends React.Component {
|
|||
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 {
|
||||
|
|
Loading…
Reference in New Issue