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) {