js 关闭当前浏览器窗口
/**
* 关闭浏览器窗口
*/
export const closeWindow = () => {
var userAgent = navigator.userAgent
if (userAgent.indexOf('Firefox') !== -1 || userAgent.indexOf('Chrome') !== -1) {
window.location.replace('about:blank')
} else {
window.opener = null
window.open('', '_self')
}
window.close()
}