This commit is contained in:
薇薇安 2026-01-22 22:37:44 +08:00
parent 972694e98f
commit ba818b480d

View File

@ -451,11 +451,11 @@ const ConfigPanel = () => {
useEffect(() => { useEffect(() => {
// accountId // accountId
if (prevAccountIdRef.current !== null && prevAccountIdRef.current !== accountId) { // if (prevAccountIdRef.current !== null && prevAccountIdRef.current !== accountId) {
// accountId // // accountId
window.location.reload() // window.location.reload()
return // return
} // }
// ref // ref
prevAccountIdRef.current = accountId prevAccountIdRef.current = accountId
@ -465,13 +465,13 @@ const ConfigPanel = () => {
loadAccountTradingStatus() loadAccountTradingStatus()
loadCurrentAccountMeta(accountId) loadCurrentAccountMeta(accountId)
// const timer = setInterval(() => { const timer = setInterval(() => {
// // 使 accountId // 使 accountId
// loadAccountTradingStatus() loadAccountTradingStatus()
// loadCurrentAccountMeta(accountId) loadCurrentAccountMeta(accountId)
// }, 3000) }, 3000)
// return () => clearInterval(timer) return () => clearInterval(timer)
}, [accountId]) // accountId }, [accountId]) // accountId
// accountIdonChanged // accountIdonChanged