new UI and handle cashing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user