From 265af5f1c10abaa8304debd25e56360ad18a5c08 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Sat, 30 Oct 2021 14:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=A0=E5=8F=82=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/service/babylon/building-basic-infos.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/service/babylon/building-basic-infos.service.ts b/src/app/service/babylon/building-basic-infos.service.ts index 269451f..030615a 100644 --- a/src/app/service/babylon/building-basic-infos.service.ts +++ b/src/app/service/babylon/building-basic-infos.service.ts @@ -36,7 +36,11 @@ export class BuildingBasicInfosService { * @param data */ postBuildingBasicInfos(name: string, data: any): Observable { - return this.http.post(this.baseUrl + this.c_post + '?name=' + name, data) + let params = { + name: name, + content: JSON.stringify(data), + } + return this.http.post(this.baseUrl + this.c_post, {},{params}) .pipe( catchError((err) => this.handleError(err)) );