From 791a96ae03cf92478244127b294c1fe520d31e89 Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期六, 11 十月 2025 11:17:10 +0800
Subject: [PATCH] 优化

---
 entry/src/main/ets/pages/home/Home.ets |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/entry/src/main/ets/pages/home/Home.ets b/entry/src/main/ets/pages/home/Home.ets
index 6a3bf19..f4369e9 100644
--- a/entry/src/main/ets/pages/home/Home.ets
+++ b/entry/src/main/ets/pages/home/Home.ets
@@ -2,7 +2,7 @@
 import http from '@ohos.net.http';
 import { HttpResponseResult } from "../../data/HttpResponse";
 import { JSON } from "@kit.ArkTS";
-import { ROMAIN } from "../../utils/config";
+import { DOMAIN } from "../../utils/config";
 
 class TabBarBase {
   title: string = ''
@@ -144,7 +144,7 @@
   getBannerList() {
     let httpRequest = http.createHttp();
     httpRequest.request(
-      `${ROMAIN}/quiz-community/public/v1.0/home/slideshows`,
+      `${DOMAIN}/quiz-community/public/v1.0/home/slideshows`,
       {
         method: http.RequestMethod.GET,
         header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` },
@@ -167,7 +167,7 @@
   getActivityList() {
     let httpRequest = http.createHttp();
     httpRequest.request(
-      `${ROMAIN}/quiz-community/public/v1.0/home/hotTraining`,
+      `${DOMAIN}/quiz-community/public/v1.0/home/hotTraining`,
       {
         method: http.RequestMethod.GET,
         header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` },
@@ -190,7 +190,7 @@
   getCourseList() {
     let httpRequest = http.createHttp();
     httpRequest.request(
-      `${ROMAIN}/quiz-community/public/v1.0/home/courses`,
+      `${DOMAIN}/quiz-community/public/v1.0/home/courses`,
       {
         method: http.RequestMethod.GET,
         header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` },
@@ -344,7 +344,7 @@
                         })
                       })
                     }
-                  }, (index: number) => index.toString())
+                  })
                 }
                 .listDirection(Axis.Vertical) // 鎺掑垪鏂瑰悜
                 .scrollBar(BarState.Off)
@@ -437,7 +437,7 @@
                       .border({ width: 1, style: BorderStyle.Solid, color: '#f2f2f2' })
                       .borderRadius(10)
                     }
-                  }, (index: number) => index.toString())
+                  })
                 }
                 .listDirection(Axis.Vertical) // 鎺掑垪鏂瑰悜
                 .scrollBar(BarState.Off)

--
Gitblit v1.8.0