Update universal_functions.js
This commit is contained in:
1 parent
93f11f24ea
commit
0f48ef65d2
1 file changed
+5
-1
@@ -68,7 +68,11 @@ export function splitname(name) {
|
||||
}
|
||||
|
||||
export function pagecounter() {
|
||||
// Функция записи посещения страницы сотрудникам.
|
||||
// В случае, если в роуте присутствует ключ мета и в нем ико - тогда производится запись
|
||||
const router = useRouter();
|
||||
console.log('meta' in router.currentRoute.value && 'ico' in router.currentRoute.value.meta);
|
||||
if('meta' in router.currentRoute.value && 'ico' in router.currentRoute.value.meta){
|
||||
const accountStore = useAccountStore();
|
||||
const appStore = useAppStore();
|
||||
|
||||
@@ -86,7 +90,7 @@ export function pagecounter() {
|
||||
appStore.countvisitor = result.data;
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
export function getDevelopment() {
|
||||
return process.env.NODE_ENV == "development" ? true : false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user