release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 49c3ec74ba - Show all commits

View File

@ -67,8 +67,10 @@ export const useMainStore = defineStore({
}, },
async login(userid: string, password: string) { async login(userid: string, password: string) {
const userStore = useUserStore();
try { try {
const { data } = await api.post<FG.Session>('/auth', { userid, password }); const { data } = await api.post<FG.Session>('/auth', { userid, password });
this.user = await userStore.getUser(data.userid, true);
this.session = fixSession(data); this.session = fixSession(data);
return true; return true;
} catch ({ response }) { } catch ({ response }) {