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/ClassificationDetail.ets | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/entry/src/main/ets/pages/home/ClassificationDetail.ets b/entry/src/main/ets/pages/home/ClassificationDetail.ets index 8bed77c..0a65b66 100644 --- a/entry/src/main/ets/pages/home/ClassificationDetail.ets +++ b/entry/src/main/ets/pages/home/ClassificationDetail.ets @@ -2,6 +2,7 @@ import { http } from "@kit.NetworkKit" import { LvMarkdownIn } from "@luvi/lv-markdown-in" import { HttpResponseResult } from "../../data/HttpResponse" +import { DOMAIN } from "../../utils/config" @Entry @Component @@ -20,7 +21,7 @@ getDetail() { let httpRequest = http.createHttp(); httpRequest.request( - `http://192.168.20.70:8080/quiz-community/public/v1.0/home/module/details?moduleName=${this.moduleName}`, + `${DOMAIN}/quiz-community/public/v1.0/home/module/details?moduleName=${this.moduleName}`, { method: http.RequestMethod.GET, header: { 'Content-Type': 'application/json', 'x-jwt-token': `Bearer ${AppStorage.get('x-jwt-token')}` }, @@ -66,6 +67,7 @@ LvMarkdownIn({ text: this.content.toString() }) .width('100%') .height(560) + .padding({ left: 10, right: 10 }) } .width('100%') .height('100%') -- Gitblit v1.8.0