tianyun 3 月之前
父节点
当前提交
6d642ad9a0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      simple-demo/memos.html

+ 1 - 1
simple-demo/memos.html

@@ -721,7 +721,7 @@
                 });
             },
             isChooseTag(item, tag) {
-                return item.content.indexOf("#" + tag + " ") !== -1;
+                return (item.content.indexOf("#" + tag + " ") !== -1) || (item.content.endsWith("#" + tag));
             },
             checkChange(val, item, tag) {
                 if (val) {