We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b0814 commit a8fb9d7Copy full SHA for a8fb9d7
src/pages/topic/topic.js
@@ -33,8 +33,11 @@ Page({
33
},
34
// 切换评论的点赞状态
35
fnTapLikeCommentOrDislike(e) {
36
- let oDataSet = e.currentTarget.dataset;
37
- this.fnNetLikeCommentOrDislike(oDataSet.id, oDataSet.index);
+ // 先检查用户登录状态
+ if (fnCheckLogin()) {
38
+ let oDataSet = e.currentTarget.dataset;
39
+ this.fnNetLikeCommentOrDislike(oDataSet.id, oDataSet.index);
40
+ }
41
42
43
fnNetLikeCommentOrDislike(sCommentId, nCommentIndex) {
0 commit comments