@@ -245,6 +245,12 @@ export default {
if (res.data.success === "yes") {
callback(res.data.comment);
this.loadCommentData(); // 重新加载评论列表
+ }else{
+ uni.showToast({
+ title: res.data.str,
+ icon: 'none'
+ });
+ this.loadCommentData();
}
},
fail: (e) => {
@@ -362,6 +362,7 @@ export default {
params
}, (res) => {
uni.hideLoading();
+ // console.log("cc-comment",res);
// 拿到后端返回的id赋值, 因为删除要用到id
params = {
...params,