feat: 更新用户登录为简易版jwt

This commit is contained in:
Lan
2025-02-09 22:56:13 +08:00
parent 34abbf2989
commit 4a8d2b7157
+2 -2
View File
@@ -110,10 +110,10 @@ const router = useRouter()
const handleSubmit = async () => {
if (!validateForm()) return
adminStore.updateAdminPwd(password.value)
api
.post('/admin/login', { password: password.value })
.then(() => {
.then((res: any) => {
adminStore.updateAdminPwd(res.detail.token)
router.push('/admin')
})
.catch((error: any) => {