address comments — remove unnecessary explicit passing of auth token
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
29c42d7f34
commit
bf449548c9
|
@ -248,10 +248,7 @@ export const useUserStore = defineStore('user', () => {
|
|||
|
||||
const fetchUser = async (userType = 'user') => {
|
||||
try {
|
||||
const _token = getToken();
|
||||
const userData = await api.get('VnUsers/getCurrentUserData', {
|
||||
headers: { Authorization: _token }
|
||||
});
|
||||
const userData = await api.get('VnUsers/getCurrentUserData');
|
||||
|
||||
if (userType === 'user') mainUser.value = userData.data;
|
||||
else supplantedUser.value = userData.data;
|
||||
|
|
Loading…
Reference in New Issue