fix: 请求成功的判断条件code改为status(部分)

This commit is contained in:
chenjinsong
2023-08-24 17:15:41 +08:00
parent 7b0ec06a05
commit 21f32dfdda
75 changed files with 422 additions and 5595 deletions

View File

@@ -134,9 +134,9 @@ export default {
url = this.switchUrl(this.chart.params.index)
if (url) {
axios.get(url, { params: params }).then(res => {
res = res.data
if (res.code === 200) {
axios.get(url, { params: params }).then(response => {
const res = response.data
if (response.status === 200) {
this.showError = false
this.isNoData = res.data.result.length === 0