Skip to content

Commit 64edfca

Browse files
committed
记录留言和评论文章的日志
1 parent 5997581 commit 64edfca

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/components/MainPage/BlogDetail.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@
213213
Title: '昵称和评论不能为空呦'
214214
});
215215
}
216+
217+
// 创建日志
218+
this.createLog({
219+
moduleType:'button',
220+
operateType:'评论文章',
221+
operateContent: That.Article.Title
222+
});
216223
},
217224
// 获取评论列表
218225
GetCommentList: function () {

src/components/MainPage/MessageBoard.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@
280280
Title: '昵称和留言不能为空呦'
281281
});
282282
}
283+
284+
// 创建日志
285+
this.createLog({
286+
moduleType:'button',
287+
operateType:'留言',
288+
operateContent: MatchedMessageText
289+
});
283290
},
284291
285292
// 渲染留言列表

0 commit comments

Comments
 (0)