fix: remove unnecessary console log

This commit is contained in:
Lin, Hung-Shin committed 2023-10-05 14:22:47 +08:00
1 parent 72b2711367
commit 50bed23d37
8 files changed
+2 -14

No files matched your search

+1 -2
View File
@@ -8,8 +8,7 @@ export async function isLoggedIn() {
export const login = async (username, password) => {
try {
const res = await api.post('/auth/login', { username, password })
console.log(res.data)
await api.post('/auth/login', { username, password })
return true
} catch (err) {
if (err.response?.status === 401) {