Fix loginu a spatneho importu
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import {computed, ref} from "vue";
|
||||
import {photoAspectRatio} from "src/composables/photos/editor/photo";
|
||||
import {ref} from "vue";
|
||||
|
||||
export const compare = ref(false);
|
||||
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ export const useUserStore = defineStore('LoggedUser', () => {
|
||||
const login = async (formData) => {
|
||||
return api.post("/login", formData).then(({data}) => {
|
||||
setTokens(data);
|
||||
this.user = data.user;
|
||||
user.value = data.user;
|
||||
})
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user