mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化ajax的访问地址
This commit is contained in:
@@ -196,7 +196,7 @@
|
|||||||
var form = layui.form
|
var form = layui.form
|
||||||
|
|
||||||
form.on('submit(postComment)', function (data) {
|
form.on('submit(postComment)', function (data) {
|
||||||
$.post('{:url("PostComment/save")}',
|
$.post('{:url("PostComment/save")->suffix(false)}',
|
||||||
data.field
|
data.field
|
||||||
, function (result) {
|
, function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
@@ -220,7 +220,7 @@
|
|||||||
var parent = $(item).closest('.post-item')
|
var parent = $(item).closest('.post-item')
|
||||||
|
|
||||||
layer.confirm('确定要删除吗?', function () {
|
layer.confirm('确定要删除吗?', function () {
|
||||||
$.post('{:url("PostComment/delete")}', {
|
$.post('{:url("PostComment/delete")->suffix(false)}', {
|
||||||
id: $(parent).data('id')
|
id: $(parent).data('id')
|
||||||
}, function (result) {
|
}, function (result) {
|
||||||
if (result.code == 0) {
|
if (result.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user