|
@@ -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);
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
};
|