初始化

master
法外狂徒张三 2024-09-04 17:55:40 +08:00
parent ba7de1fc0f
commit 234cca980b
1 changed files with 4 additions and 5 deletions

View File

@ -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
})