feat: add loggedIn checks for frontend

This commit is contained in:
wancat committed 2023-09-17 12:29:45 +08:00
1 parent 34c277c886
commit d939b7eb4d
5 files changed
+37 -21

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ const handleLogin = async () => {
async function check() {
const user = username.value.trim()
try {
const res = await api.get('/auth/check', {
const res = await api.get('/auth/check-username', {
params: { username: user },
})
// user not exists, try register