diff --git a/index.html b/index.html index 264b8e9..e691b87 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,17 @@ + + + + + + + + + + + 科研管理平台 diff --git a/src/components/filePreview/PptPreview.vue b/src/components/filePreview/PptPreview.vue new file mode 100644 index 0000000..3f4cea8 --- /dev/null +++ b/src/components/filePreview/PptPreview.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/src/components/filePreview/index.vue b/src/components/filePreview/index.vue index ace2b09..f15d63a 100644 --- a/src/components/filePreview/index.vue +++ b/src/components/filePreview/index.vue @@ -6,6 +6,7 @@ :append-to-body="false" :close-on-click-modal="true" > + @@ -43,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'&&!checkImgType(props.fileType)){ +if(props.fileType!=='pdf'&&props.fileType!=='docx'&&props.fileType !== 'ppt'&&props.fileType !== 'pptx'&&!checkImgType(props.fileType)){ showPreview.value=false ElNotification({ title: '提示', diff --git a/vite.config.js b/vite.config.js index 3697c3c..46074c9 100644 --- a/vite.config.js +++ b/vite.config.js @@ -83,11 +83,11 @@ 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/', + // // target: 'http://frp.feashow.cn:31800/', // changeOrigin: true, // rewrite: (path) => path.replace(/^\/api/, '') },