.
gitea/hedera-web/pipeline/pr-beta There was a failure building this commit
Details
gitea/hedera-web/pipeline/pr-beta There was a failure building this commit
Details
This commit is contained in:
parent
d3cb226ccc
commit
e6b8c1cac1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue