1405/02/14-add giftCard

This commit is contained in:
2026-05-04 17:14:02 +03:30
parent 928fbb2dca
commit 570df60e01
6 changed files with 112 additions and 1 deletions
+3
View File
@@ -15,6 +15,7 @@ import VueLazyLoad from 'vue3-lazyload'
import { getMe } from '@/api/me'
import type { NavigationGuardNext, RouteLocationNormalized } from 'vue-router'
import { useAuthStore } from '@/store/useAuthStore'
import {getConfigApp} from "@/utils/config";
const app = createApp(App)
@@ -85,6 +86,8 @@ router.beforeEach(async (to, from, next) => {
if (timeoutId) {
clearTimeout(timeoutId)
}
if (to.name=='giftCard' && getConfigApp('name')!='garoosi')
return next({ name: from.name })
// Start a new timeout to reset fingerprint after 5 seconds of inactivity
if (from.name !== 'login' || from.name !== undefined) {
timeoutId = setTimeout(async () => {