- modified QueryRouter.

- modified MetaTagUpdated.
- updated version.
This commit is contained in:
Eugene Serb 2022-08-29 16:01:45 +03:00
parent 80c110a7ad
commit 3a7be242ca
3 changed files with 6 additions and 4 deletions

View File

@ -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": {

View File

@ -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) => {

View File

@ -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);
} }