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