Commit ee8c2bd2 authored by 刘文虎's avatar 刘文虎

导出:请求报错导致路径为空

parent fad7aae3
Pipeline #3796 canceled with stages
This diff is collapsed.
This diff is collapsed.
...@@ -156,7 +156,9 @@ export default { ...@@ -156,7 +156,9 @@ export default {
res = await exportBill(params); res = await exportBill(params);
} }
} }
if(res) {
this.saveFile(res); this.saveFile(res);
}
} catch (e) { } catch (e) {
this.showToast('下载错误'); this.showToast('下载错误');
this.stopLoading(); this.stopLoading();
......
...@@ -197,7 +197,9 @@ export default { ...@@ -197,7 +197,9 @@ export default {
} else { } else {
res = await exportBill(params); res = await exportBill(params);
} }
if(res) {
this.saveFile(res); this.saveFile(res);
}
} catch (e) { } catch (e) {
this.showToast('下载错误'); this.showToast('下载错误');
this.stopLoading(); this.stopLoading();
......
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