Parcourir la source

应急预案文件无法下载

maxiaoxiao il y a 4 mois
Parent
commit
c8b1acebf3
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/views/geologyDisaster/details.vue

+ 4 - 0
src/views/geologyDisaster/details.vue

@@ -169,6 +169,10 @@ export default {
       });
     },
     download(row) {
+      if (!row.path) {
+        this.$Message.error('应急预案文件路径为空,无法下载!');
+        return;
+      }
       window.open(`${window.axiosURI}/file/upload/attachment${row.path}`);
     },
     preview(row) {