From e6b8c1cac123f668171dc66c7a9c77d9cb044ae7 Mon Sep 17 00:00:00 2001 From: taro Date: Sun, 23 Feb 2025 15:38:26 -0300 Subject: [PATCH] . --- src/stores/user.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stores/user.js b/src/stores/user.js index 7f9d8a54..90aaa688 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -248,10 +248,11 @@ export const useUserStore = defineStore('user', () => { const fetchUser = async (userType = 'user') => { try { - const userData = await api.get('VnUsers/getCurrentUserData'); - - if (userType === 'user') mainUser.value = userData.data; - else supplantedUser.value = userData.data; + const userData = await jApi.getObject( + 'SELECT id, nickname, name, lang FROM account.myUser' + ); + if (userType === 'user') mainUser.value = userData; + else supplantedUser.value = userData; } catch (error) { console.error('Error fetching user: ', error); }