|
@@ -379,10 +379,11 @@
|
|
|
addTag(item, cTag) {
|
|
|
let content = item.content;
|
|
|
// 如果已经有了,就不添加
|
|
|
- if (content.indexOf(cTag) !== -1) {
|
|
|
+ let tmpTag = '#' + cTag + ' ';
|
|
|
+ if (content.indexOf(tmpTag) !== -1) {
|
|
|
return;
|
|
|
}
|
|
|
- item.content = '#' + cTag + ' ' + content;
|
|
|
+ item.content = tmpTag + content;
|
|
|
// 提交记录
|
|
|
let res = requestUtil.sync('https://web_history.tianyunperfect.cn/memos/update', 'post', {
|
|
|
id: item.id,
|