From 62d18089c45f6d03215c68fb2714f127c18ee496 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 9 Oct 2024 21:16:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 11 ----------- src/components/filePreview/index.vue | 4 ++-- vite.config.js | 4 ++-- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index e691b87..264b8e9 100644 --- a/index.html +++ b/index.html @@ -4,17 +4,6 @@ - - - - - - - - - - - 科研管理平台 diff --git a/src/components/filePreview/index.vue b/src/components/filePreview/index.vue index f15d63a..7dc3990 100644 --- a/src/components/filePreview/index.vue +++ b/src/components/filePreview/index.vue @@ -6,7 +6,7 @@ :append-to-body="false" :close-on-click-modal="true" > - + @@ -44,7 +44,7 @@ const checkImgType=(fileType)=>{ return fileType == 'png' || fileType == 'jpg' || fileType == 'jpeg' || fileType == 'ico' || fileType == 'PNG' || fileType == 'JPG'; } console.info("🚀 ~method:‘checkImgType(props.fileType) -----", checkImgType(props.fileType)) -if(props.fileType!=='pdf'&&props.fileType!=='docx'&&props.fileType !== 'ppt'&&props.fileType !== 'pptx'&&!checkImgType(props.fileType)){ +if(props.fileType!=='pdf'&&props.fileType!=='docx'&&!checkImgType(props.fileType)){ showPreview.value=false ElNotification({ title: '提示', diff --git a/vite.config.js b/vite.config.js index 46074c9..905f3c9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -83,8 +83,8 @@ export default defineConfig({ // rewrite: (path) => path.replace(/^\/api/, '') // }, '/api': { - target: 'http://kyglweb.scgzjy.com:8080/', - // target: 'http://mosr.feashow.cn', + // target: 'http://kyglweb.scgzjy.com:8080/', + target: 'http://mosr.feashow.cn', changeOrigin: true, // target: 'http://clay.frp.feashow.cn', // // target: 'http://frp.feashow.cn:31800/',