Commit a9819ebf authored by guoyou's avatar guoyou

会员订单管理兼容ie

parent 3184fd61
......@@ -534,13 +534,14 @@ export default {
},
excel() {
this.listQuery.isExport = true;
var u = navigator.userAgent, app = navigator.appVersion;
orderMemberExcel(this.listQuery,{responseType: 'arraybuffer'}).then(res => {
this.listQuery.isExport = false;
const content = res
const blob = new Blob([content], {type: "application/vnd.ms-excel"})
const fileName = this.timestamp(new Date())+'会员订单列表.xlsx'
if(u.indexOf('Trident') > -1){
if(u.indexOf('Edge') > -1){
window.navigator.msSaveBlob(blob, fileName)
console.log('ie');
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment