future 1 gadu atpakaļ
vecāks
revīzija
25b53f4904
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      assets/script/ui/home/home.ts

+ 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
         // 更新首页车
         this.home_car.getComponent(home_car).updateCar()
+        // 检查我在排行中,更换车数据
+        this.bottom.getComponent(home_bottom).checkIsMineCountryRank()
     }
 
     onUpdateUserDefaultCar() {
+        // 更新首页车
         this.home_car.getComponent(home_car).updateCar()
-        // 刷新排行
+        // 检查我在排行中,更换车数据
         this.bottom.getComponent(home_bottom).checkIsMineCountryRank()
     }