Bugfixing

This commit is contained in:
Michal Kváček
2023-11-20 10:24:08 +01:00
parent f9d70a5d57
commit af74801693
12 changed files with 20 additions and 29 deletions
-14
View File
@@ -1,14 +0,0 @@
import {ref} from "vue";
import {useUserStore} from "stores/User";
export const loading = ref(true);
export const user = ref(null);
export const fetchUser = (username) => {
loading.value = true;
return useUserStore().fetchDetail(username)
.then(respUser => {
user.value = respUser;
return respUser;
})
.finally(() => loading.value = false);
};