mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
Feat/api jwt (#1212)
This commit is contained in:
@@ -89,7 +89,7 @@ const NormalForm = () => {
|
||||
}
|
||||
try {
|
||||
setIsLoading(true)
|
||||
await login({
|
||||
const res = await login({
|
||||
url: '/login',
|
||||
body: {
|
||||
email,
|
||||
@@ -97,7 +97,8 @@ const NormalForm = () => {
|
||||
remember_me: true,
|
||||
},
|
||||
})
|
||||
router.push('/apps')
|
||||
localStorage.setItem('console_token', res.data)
|
||||
router.replace('/apps')
|
||||
}
|
||||
finally {
|
||||
setIsLoading(false)
|
||||
|
||||
Reference in New Issue
Block a user