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/',