| | |
| | | import { HttpResponseResult } from '../../data/HttpResponse'; |
| | | import { ComponentContent } from '@kit.ArkUI'; |
| | | import { PromptActionClass } from '../../utils/PromptActionClass'; |
| | | import { ROMAIN } from '../../utils/config'; |
| | | |
| | | class DialogParams { |
| | | text: string = ""; |
| | |
| | | } |
| | | |
| | | httpRequest.request( |
| | | "http://192.168.20.70:8080/quiz-community/public/v1.0/users/register", |
| | | `${ROMAIN}/quiz-community/public/v1.0/users/register`, |
| | | { |
| | | method: http.RequestMethod.POST, |
| | | header: { 'Content-Type': 'application/json' }, |
| | |
| | | } else { |
| | | promptAction.showToast({ message: resData.msg }) |
| | | } |
| | | } else { |
| | | promptAction.showToast({ message: err.message }) |
| | | } |
| | | } |
| | | ) |