tianyunperfect 1 vuosi sitten
vanhempi
commit
30f227f7ff
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      simple-demo/send_memos.html

+ 3 - 2
simple-demo/send_memos.html

@@ -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,