fix: axios response超时逻辑变更
This commit is contained in:
@@ -109,9 +109,9 @@ export default {
|
||||
}
|
||||
|
||||
this.toggleLoading(true)
|
||||
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
|
||||
res.data.result.forEach(e => {
|
||||
|
||||
Reference in New Issue
Block a user