future 1 سال پیش
والد
کامیت
25b53f4904
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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()
     }