mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
优化ajax的访问地址
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user