@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.6fb7b4fe.js"></script><script defer="defer" src="/js/app.803eb722.js"></script><link href="/css/chunk-vendors.ab49d789.css" rel="stylesheet"><link href="/css/app.878f2d55.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.6fb7b4fe.js"></script><script defer="defer" src="/js/app.a38cc442.js"></script><link href="/css/chunk-vendors.ab49d789.css" rel="stylesheet"><link href="/css/app.878f2d55.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
@@ -1035,6 +1035,51 @@ export default {
return value == 100 ? "100%" : `${value}%`;
},
lookFile(u) {
+ var b = [
+ "DOC",
+ "DOCX",
+ "DOCM",
+ "DOTM",
+ "DOTX",
+ "PPTX",
+ "PPSX",
+ "PPT",
+ "PPS",
+ "PPTM",
+ "POTM",
+ "PPAM",
+ "POTX",
+ "PPSM",
+ ];
+ var c = ["PDF", "DOT", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
+ var d = [
+ "BMP",
+ "PJP",
+ "APNG",
+ "PNG",
+ "JPG",
+ "GIF",
+ "SVG",
+ "JPEG",
+ "ICO",
+ "PGPEG",
+ "AVIF",
+ if (
+ b.indexOf(u.split(".")[u.split(".").length - 1].toLocaleUpperCase()) ==
+ -1 &&
+ c.indexOf(u.split(".")[u.split(".").length - 1].toLocaleUpperCase()) ==
+ d.indexOf(u.split(".")[u.split(".").length - 1].toLocaleUpperCase()) ==
+ -1
+ ) {
+ this.$message({
+ message: "该文件不可预览!",
+ type: "warning",
+ });
+ return;
+ }
this.showFileUrl = "";
this.showFile = true;
this.showFileUrl = u;