| | |
| | | import { http } from "@kit.NetworkKit" |
| | | import { LvMarkdownIn } from "@luvi/lv-markdown-in" |
| | | import { HttpResponseResult } from "../../data/HttpResponse" |
| | | import { DOMAIN } from "../../utils/config" |
| | | |
| | | @Entry |
| | | @Component |
| | |
| | | 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')}` }, |
| | |
| | | LvMarkdownIn({ text: this.content.toString() }) |
| | | .width('100%') |
| | | .height(560) |
| | | .padding({ left: 10, right: 10 }) |
| | | } |
| | | .width('100%') |
| | | .height('100%') |