diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 9ae6d61..b50aa3a 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -126,6 +126,7 @@ 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,6 +190,12 @@ export default { getAirQuality(this.sysId,this.unkownvalue).then(response =>{ console.log(response) this.jsonData=response.result + if(this.jsonData==null){ + this.jsonData=response.reason + } + if(response==error){ + this.jsonData="未知错误" + } this.dialogVisible=true }) },