修复运动不刷新问题(补) 3123/1 3123/head 3124/target/1 3125/target/1
authorxue <2144439972@qq.com>
Thu, 22 Jan 2026 07:07:51 +0000 (15:07 +0800)
committerxue <2144439972@qq.com>
Thu, 22 Jan 2026 07:07:51 +0000 (15:07 +0800)
code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalmodel.cpp
code/sdk/application/wearable/fd272/nativeapp/nativeui/goal/src/goalview.cpp

index d7f0433..7637bda 100644 (file)
@@ -25,7 +25,6 @@ namespace OHOS
  
    GoalModel::GoalModel()
    {
-      GoalModelInitdata();
       WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "GoalModel::GoalModel");
    }
 
index e9a5d03..166bce3 100644 (file)
@@ -30,7 +30,7 @@ namespace OHOS
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "GoalView::GoalView");
         SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION);
         SetViewIndex(0); // 视图索引
-
+        GoalModel::GetInstance().GoalModelInitdata();
         g_pgoalView = this;
     }