1405/02/14-add giftCard
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user