mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-14 06:51:58 +00:00
4.2.5
* 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:
parent
8582626269
commit
4e0539103a
5 changed files with 38 additions and 3 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue