Эх сурвалжийг харах

Doc: username converted to GitHub profile link in changelog page

qingwei.li 8 жил өмнө
parent
commit
3a1f9480de

+ 1 - 0
examples/pages/template/changelog.tpl

@@ -159,6 +159,7 @@
         }
       }
       fragments = fragments.replace(/#(\d+)/g, '<a href="https://github.com/ElemeFE/element/issues/$1" target="_blank">#$1</a>');
+      fragments = fragments.replace(/@(\w+)/g, '<a href="https://github.com/$1" target="_blank">@$1</a>');
       this.$refs.timeline.innerHTML = `${fragments}</li>`;
 
       changeLog.$el.remove();