From 55ca17203fe4ded53cd999ef179b609565530b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=9B=84?= Date: Tue, 11 Apr 2023 01:38:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=88=A0=E9=99=A4=E5=AF=86?= =?UTF-8?q?=E7=A0=81,=E5=89=8D=E7=AB=AF=E9=99=90=E5=88=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=A4=A7=E5=B0=8F=20=E6=94=AF=E6=8C=81=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=AF=86=E7=A0=81,=E5=89=8D=E7=AB=AF=E9=99=90?= =?UTF-8?q?=E5=88=B6=E4=B8=8A=E4=BC=A0=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 高雄 --- server/src/main/resources/web/main/index.ftl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/server/src/main/resources/web/main/index.ftl b/server/src/main/resources/web/main/index.ftl index 21231c3c..fb977325 100644 --- a/server/src/main/resources/web/main/index.ftl +++ b/server/src/main/resources/web/main/index.ftl @@ -164,20 +164,19 @@ $.ajax({ url: '${baseUrl}deleteFile?fileName=' + fileName +'&password='+password, success: function (data) { + // console.log(data); // 删除完成,刷新table - if ("删除文件失败,密码错误!" === data) { - alert(data); + if ("删除文件失败,密码错误!" === data.msg) { + alert(data.msg); } else { $('#table').bootstrapTable('refresh', {}); } }, error: function (data) { - console.log(data); return false; } }) }else{ - //alert("取消"); return false; } @@ -257,9 +256,6 @@ $("#btnSubmit").click(function () { var filepath = $("#size").val(); - var arr = filepath.split('\\'); //通过\分隔字符串,成字符串数组 - var fileName = arr[arr.length-1]; //取最后一个,就是文件全名,含后缀 - if(!checkFileSize(filepath)){ return false; }