safari基于安全策略,会默认阻止使用window.open打开新窗口。
解决办法,套一个延时定时器
const timeoutId = setTimeout( () => { window.open(url); clearTimeout(timeoutId); }, 0 );