|
@@ -82,7 +82,7 @@ export default ({ spaceId, projectId }) => {
|
|
let countTimer = 0;
|
|
let countTimer = 0;
|
|
airLoadingTimer.current = setInterval(() => {
|
|
airLoadingTimer.current = setInterval(() => {
|
|
if (countTimer >= 30 || isNowAirStatus.current === val) {
|
|
if (countTimer >= 30 || isNowAirStatus.current === val) {
|
|
- setIsOpen(val); // 开关
|
|
|
|
|
|
+ setIsOpen(isNowAirStatus.current); // 开关
|
|
setIsLoading(false);
|
|
setIsLoading(false);
|
|
clearInterval(airLoadingTimer.current);
|
|
clearInterval(airLoadingTimer.current);
|
|
} else {
|
|
} else {
|