mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
修复demo中action blank无效问题
This commit is contained in:
parent
180eb61c5b
commit
c480db45c9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user