const url = `${window.location.origin}/xxx`’;
const win = window.open(url, '_blank');
win && (win.opener = null);
win && (win.location = url);
加上win.opener = null; win.location = url即可
const url = `${window.location.origin}/xxx`’;
const win = window.open(url, '_blank');
win && (win.opener = null);
win && (win.location = url);
加上win.opener = null; win.location = url即可