mirror of
https://github.com/eugene-serb/wavelovers.git
synced 2023-09-09 23:41:16 +03:00
- modified QueryRouter.
- modified MetaTagUpdated. - updated version.
This commit is contained in:
parent
80c110a7ad
commit
3a7be242ca
@ -2,7 +2,7 @@
|
|||||||
"name": "wavelovers",
|
"name": "wavelovers",
|
||||||
"description": "Wavelovers. Use your device vibration correctly. Make a massager out of a gamepad.",
|
"description": "Wavelovers. Use your device vibration correctly. Make a massager out of a gamepad.",
|
||||||
"keywords": [ "wavelovers", "gamepad-vibrator", "gamepad-test-tool", "gamepad-vibration-test-tool" ],
|
"keywords": [ "wavelovers", "gamepad-vibrator", "gamepad-test-tool", "gamepad-vibration-test-tool" ],
|
||||||
"version": "1.0.11",
|
"version": "1.0.12",
|
||||||
"license": "GNU GPL v3",
|
"license": "GNU GPL v3",
|
||||||
"homepage": "https://wavelovers.ru/",
|
"homepage": "https://wavelovers.ru/",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import { NavigationGuardNext, RouteLocationNormalized, RouteRecordNormalized } from "vue-router";
|
import {
|
||||||
|
NavigationGuardNext, RouteLocationNormalized, RouteRecordNormalized
|
||||||
|
} from "vue-router";
|
||||||
|
|
||||||
function appendTags(tagsArray: object[], type: string) {
|
function appendTags(tagsArray: object[], type: string) {
|
||||||
tagsArray.map((meta: object) => {
|
tagsArray.map((meta: object) => {
|
||||||
|
@ -8,9 +8,9 @@ function updateRoute(
|
|||||||
from: RouteLocationNormalized,
|
from: RouteLocationNormalized,
|
||||||
next: NavigationGuardNext,
|
next: NavigationGuardNext,
|
||||||
router: Router,
|
router: Router,
|
||||||
queryRoutes: Array<IQueryRoute>
|
routes: Array<IQueryRoute>
|
||||||
): void {
|
): void {
|
||||||
queryRoutes.forEach((route) => {
|
routes.forEach((route) => {
|
||||||
if (route.query === to.fullPath) {
|
if (route.query === to.fullPath) {
|
||||||
router.push(route.path);
|
router.push(route.path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user