future 1 жил өмнө
parent
commit
25b53f4904

+ 4 - 1
assets/script/ui/home/home.ts

@@ -51,11 +51,14 @@ export class home extends Component {
         userDataManager.user_car_list.car_list = res.unlock_car_list
         userDataManager.user_car_list.car_list = res.unlock_car_list
         // 更新首页车
         // 更新首页车
         this.home_car.getComponent(home_car).updateCar()
         this.home_car.getComponent(home_car).updateCar()
+        // 检查我在排行中,更换车数据
+        this.bottom.getComponent(home_bottom).checkIsMineCountryRank()
     }
     }
 
 
     onUpdateUserDefaultCar() {
     onUpdateUserDefaultCar() {
+        // 更新首页车
         this.home_car.getComponent(home_car).updateCar()
         this.home_car.getComponent(home_car).updateCar()
-        // 刷新排行
+        // 检查我在排行中,更换车数据
         this.bottom.getComponent(home_bottom).checkIsMineCountryRank()
         this.bottom.getComponent(home_bottom).checkIsMineCountryRank()
     }
     }