mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
fix(auth): 修复TraderConfigModal使用错误的token key (#882)
This commit is contained in:
@@ -192,7 +192,11 @@ export function TraderConfigModal({
|
||||
setBalanceFetchError('')
|
||||
|
||||
try {
|
||||
const token = localStorage.getItem('token')
|
||||
const token = localStorage.getItem('auth_token')
|
||||
if (!token) {
|
||||
throw new Error('未登录,请先登录')
|
||||
}
|
||||
|
||||
const response = await fetch(
|
||||
`/api/account?trader_id=${traderData.trader_id}`,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user