|
|
@@ -704,10 +704,17 @@ async function downloadFYDI() {
|
|
|
loginAccountId: localStorage.loginAccountId,
|
|
|
});
|
|
|
|
|
|
- let url = res0.data.result;
|
|
|
- let a = document.createElement("a");
|
|
|
- a.setAttribute("href", url);
|
|
|
- a.click();
|
|
|
+ if (res0.data.result == 1) {
|
|
|
+ ElNotification({
|
|
|
+ type: "error",
|
|
|
+ title: res0.data.msg,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ let url = res0.data.result;
|
|
|
+ let a = document.createElement("a");
|
|
|
+ a.setAttribute("href", url);
|
|
|
+ a.click();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
let exportModalVisable = ref(false);
|