From e40d273a4262a6eda9edc65a44f05e1a237d3cf2 Mon Sep 17 00:00:00 2001 From: augushong Date: Sun, 20 Mar 2022 13:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96ajax=E7=9A=84=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/index/post/read.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/index/post/read.html b/view/index/post/read.html index daf4e3b..1a81b4b 100644 --- a/view/index/post/read.html +++ b/view/index/post/read.html @@ -196,7 +196,7 @@ var form = layui.form form.on('submit(postComment)', function (data) { - $.post('{:url("PostComment/save")}', + $.post('{:url("PostComment/save")->suffix(false)}', data.field , function (result) { if (result.code == 0) { @@ -220,7 +220,7 @@ var parent = $(item).closest('.post-item') layer.confirm('确定要删除吗?', function () { - $.post('{:url("PostComment/delete")}', { + $.post('{:url("PostComment/delete")->suffix(false)}', { id: $(parent).data('id') }, function (result) { if (result.code == 0) {