From 234cca980b57c39872f3b1f2d7c86f5cecb1e8a0 Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Wed, 4 Sep 2024 17:55:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/market/apitype/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index b50aa3a..31fc861 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -126,7 +126,6 @@ import { listApitype, getApitype, delApitype, addApitype, updateApitype } from "@/api/market/apitype"; import {getAirQuality, pay} from "../../../api/market/apitype"; import * as url from "url"; -import {error} from "echarts/types/src/util/log"; export default { name: "Apitype", @@ -189,12 +188,12 @@ export default { test(){ getAirQuality(this.sysId,this.unkownvalue).then(response =>{ console.log(response) - this.jsonData=response.result - if(this.jsonData==null){ + this.jsonData=response + if(response.reason!=null){ this.jsonData=response.reason } - if(response==error){ - this.jsonData="未知错误" + if(response.result!=null){ + this.jsonData=response.result } this.dialogVisible=true })