new UI and handle cashing

This commit is contained in:
2026-06-16 19:47:28 +03:30
parent e174ae28c5
commit 6e5ea0319f
41 changed files with 2936 additions and 641 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import { tokenName } from '@/themeConfig'
import { getTokenName } from '@/themeConfig'
import { ref } from 'vue'
import {useConfigStore} from "@/store/configStore";
@@ -11,7 +11,7 @@ const nameProject= getConfigApp('name')
function setToken(token: string | undefined) {
return localStorage.setItem(tokenName, token)
return localStorage.setItem(getTokenName(), token)
}
function setFingerPrint(val: string | undefined) {
@@ -19,7 +19,7 @@ function setFingerPrint(val: string | undefined) {
}
function getToken() {
return localStorage.getItem(tokenName)
return localStorage.getItem(getTokenName())
}
function getIsActiveFingerprint() {
@@ -78,7 +78,7 @@ export async function authenticateWithFingerprint() {
function removeToken() {
return localStorage.removeItem(tokenName)
return localStorage.removeItem(getTokenName())
}
function removeFingerPrint() {