|
@@ -455,7 +455,7 @@ export default {
|
|
}
|
|
}
|
|
)
|
|
)
|
|
.then(response => {
|
|
.then(response => {
|
|
- if (response.data) {
|
|
|
|
|
|
+ if (response.data && response.data.byteLength > 0) {
|
|
var blob = new Blob([response.data], {
|
|
var blob = new Blob([response.data], {
|
|
type: "application/zip"
|
|
type: "application/zip"
|
|
});
|
|
});
|
|
@@ -469,6 +469,13 @@ export default {
|
|
a.target = "_blank";
|
|
a.target = "_blank";
|
|
a.click();
|
|
a.click();
|
|
URL.revokeObjectURL(url);
|
|
URL.revokeObjectURL(url);
|
|
|
|
+ } else {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: "提示",
|
|
|
|
+ message: "无相关文件",
|
|
|
|
+ type: "error",
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
}
|
|
}
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|