Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -20,8 +20,8 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
else localStorage.removeItem(USER_KEY)
|
||||
}
|
||||
|
||||
async function login(loginId, password) {
|
||||
const res = await authApi.login({ loginId, password })
|
||||
async function login(loginId, password, rememberMe = false) {
|
||||
const res = await authApi.login({ loginId, password, rememberMe })
|
||||
token.value = res.token
|
||||
user.value = res.member
|
||||
persist()
|
||||
|
||||
Reference in New Issue
Block a user