From c1194414df9e35e8d15e59855d148ca193b1e3c9 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 13 六月 2024 09:01:30 +0800
Subject: [PATCH] 限制文件上传条件
---
src/views/components/details.vue | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/views/components/details.vue b/src/views/components/details.vue
index 5f3c534..2b765a4 100644
--- a/src/views/components/details.vue
+++ b/src/views/components/details.vue
@@ -136,6 +136,7 @@
state.content = res.data
if(state.content.updateTime){state.content.updateTime.substring(0.,16)}
state.content.createTime = state.content.createTime.substring(0.,16)
+ state.content.pubDate = state.content.pubDate.substring(0,10)
}else{
ElMessage.warning(res.message)
}
@@ -161,7 +162,7 @@
e.preventDefault();
const file = {
fileUrl: e.target.href,
- fileName: e.target.download
+ fileName: e.target.innerHTML
}
axios.get( file.fileUrl,{
headers:
@@ -252,7 +253,7 @@
box-shadow: 1px 1px 3px rgba(0,0,0,.04);
padding: 20px 15px 40px;
background: #fff;
- max-height: calc(100vh - 330px);
+ max-height: calc(100vh - 280px);
overflow-y: auto;
.title{
--
Gitblit v1.9.2