vue 根据后端返回的文件流进行预览文件<el-button @click.native.prevent="prewelRow(scope.row)">预览</el-button>//这里调接口getDataExcel({id:row.id}).then(res=>{ var excelData = res.data; var r = window.open(); r.document.body.innerHTML = excelData;})//这样页面就可
vue 根据后端返回的文件流进行预览文件<el-button @click.native.prevent="prewelRow(scope.row)">预览</el-button>//这里调接口getDataExcel({id:row.id}).then(res=>{ var excelData = res.data; var r = window.open(); r.document.body.innerHTML = excelData;})//这样页面就可