直接打开异步请求到的链接会被浏览器拦截。
可以使用如下解决方案:
async applyForAuth(row) {
const win = window.open('about:blank', '_blank');
const r = await getAuth(row.shopId);
if (r.code === '8001') {
win.location.href = r.data;
}
else {
win.close();
this.$message.error(r.msg);
}
}