本地写了一个导出功能,本地导出毫无问题但更新到线上去就被谷歌浏览器拦截了,其他浏览器没有
线上就晃一下页面就没了
导出功能的代码:
printToExcel(item) {
debugger
this.sys_ButtonHandle("export", item).then((resolve) => {
if (resolve === false) return;
else {
if (this.$refs.formDetail.getSaveStatus()) {
let data = Object();
// data.BusinessID = this.dialogFormBussiness.businessId;
// data.BusinessID = this.$refs.formDetail.returnBusinessId();
// data.PrintModelID = item.id;
// data.PrivilegeId = this.dialogFormBussiness.privilegeId;
data.businessID = this.$refs.formDetail.returnBusinessId();
data.printModelID = item.id;
data.privilegeId = this.dialogFormBussiness.privilegeId;
// GetPrintToExcel(data).then((response) => {
PrintToExcel(data).then((response) => {
var aa = response.result;
window.open(aa);
// common.downLoadFile(response.result, item.printName);
// common.downLoadFile('https://erp.maxgreat.com.cn/pserver/pdf/a021014b-68ed-4c31-805d-dadb3fc04140/a021014b-68ed-4c31-805d-dadb3fc04140.xls', item.printName);
});
} else {
this.$message({
message: L("数据还未保存,请保存之后再转档"),
type: "warning",
});
}
}
});
},
怎么样才能不拦截有啥方法脑容量已经快消耗殆尽了