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
+2 -4
View File
@@ -10,12 +10,10 @@ import {getConfig} from "@/api/config";
export const useConfigStore = defineStore('config', () => {
const config = ref()
const config = ref(window.__APP_CONFIG__?.user)
async function getConfigData() {
let temp = window.__APP_CONFIG__
config.value = temp.user
config.value = window.__APP_CONFIG__?.user
console.log(config.value)
}
+3 -2
View File
@@ -19,9 +19,10 @@ export const useUserStore = defineStore('user', () => {
try {
userInfo.value = await getMe()
useSettingsStore().mergeSettings(userInfo.value.settings)
setFingerPrint(userInfo.value.finger_print.toString())
if (userInfo.value?.finger_print != null) {
setFingerPrint(String(userInfo.value.finger_print))
}
productWallet.value = userInfo.value.pwallet
// return userInfo.value
walletStore.walletInfo = userInfo.value.wallet
} catch (e) {
console.log(e)