فهرست منبع

扫描日志文件查看调整

zhangjie 1 سال پیش
والد
کامیت
d66ff3bee2
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      src/modules/admin/views/ScanLogManage.vue

+ 8 - 4
src/modules/admin/views/ScanLogManage.vue

@@ -135,10 +135,14 @@ export default {
       this.getList();
     },
     async toView(row) {
-      const res = await download({ url: row.pathUrl });
-      const win = window.open("", "_blank");
-      win.document.write(`<pre>${res}</pre>`);
-      win.document.close();
+      if (row.type === "NORMAL") {
+        const res = await download({ url: row.pathUrl });
+        const win = window.open("", "_blank");
+        win.document.write(`<pre>${res}</pre>`);
+        win.document.close();
+      } else {
+        window.open(row.pathUrl);
+      }
     },
   },
 };