From 260ef546260562c0192051de9be47289c5024d0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Wed, 4 Dec 2024 16:03:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=AA=E8=83=BD?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0zip=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/articleAdd.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 3c1eef9..e264f51 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -2056,11 +2056,18 @@ export default { // return isWORd; }, beforeupload_picturesAndTables(file) { + let flieArr = file.name.split('.'); + let fileSuffix = flieArr[flieArr.length - 1]; + if (fileSuffix != 'zip') { + this.$message.error('Only ZIP files can be uploaded (file format: .zip).'); + return false; + } + // const iszip = - // file.type === 'application/x-zip-compressed' || - // file.name.split('.')[1] === 'rar'; + // file.type === 'application/x-zip-compressed'; // if (!iszip) { - // this.$message.error('Only compressed files can be uploaded(.rar,.zip)'); + // this.$message.error('Only compressed files can be uploaded(.zip)'); + // return false; // } // return iszip; }, @@ -2190,6 +2197,10 @@ export default { }); }, removefilepicturesAndTables(file, fileList) { + console.log('file at line 2199:', file) + if(!file){ +return false + } this.form.picturesAndTables = ''; this.fileL_picturesAndTables = []; this.$api From 69ed8f3acf993e3839348bdb44e73b8e9820f109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Thu, 5 Dec 2024 16:35:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8A=8Aonline=E7=9A=84cn=E6=94=B9?= =?UTF-8?q?=E6=88=90com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/page/articleListEditor_C.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/page/articleListEditor_C.vue b/src/components/page/articleListEditor_C.vue index 4869f53..cf54a7d 100644 --- a/src/components/page/articleListEditor_C.vue +++ b/src/components/page/articleListEditor_C.vue @@ -446,7 +446,7 @@ export default { // 跳转页面 lookView(e) { - let urlBlan = 'https://www.tmrjournals.cn/article.html?J_num=' + e.journal_id + '&a_id=' + e.article_id; + let urlBlan = 'https://www.tmrjournals.com/article.html?J_num=' + e.journal_id + '&a_id=' + e.article_id; window.open(urlBlan, '_blank'); },