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