提交评论功能

This commit is contained in:
2024-05-06 12:35:09 +08:00
parent 645aafcadb
commit e48d34c52c
10 changed files with 215 additions and 8 deletions
+16 -1
View File
@@ -200,6 +200,7 @@
async: false
});
},
/**分享脑图*/
share_mind: function (mind_id) {
const me = this
@@ -230,7 +231,21 @@
async: false
});
},
/**评论*/
open_pinglun: function (mind_id) {
const me = this
$.ajax({
type: "post",
url: "bianji",
headers: {"X-CSRFToken": $.cookie("csrftoken")},
data: {'id': mind_id},
dataType: "json",
success: function (resp) {
me.show_share_url(`${resp.data.u}`, `${resp.data.h}`)
},
async: false
});
},
/**取消分享*/
share_cancel: function (mind_id) {
const me = this