1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-14 06:51:58 +00:00
* Fixed: Words being highlighted as mentions incorrectly when they start with the user's name.
* API Changed: New `<react-link>` and `<aspect>` global Vue components.
This commit is contained in:
SirStendec 2019-06-05 20:29:33 -04:00
parent 8582626269
commit 4e0539103a
5 changed files with 38 additions and 3 deletions

View file

@ -99,6 +99,16 @@ export class Vue extends Module {
vue.mixin({
methods: {
reactNavigate(url, event) {
const router = t.resolve('site.router');
if ( router && router.history ) {
if ( event ) {
event.preventDefault();
event.stopPropagation();
}
router.history.push(url);
}
},
t(key, phrase, options) {
return this.$i18n.t_(key, phrase, options);
},