diff --git a/pages/index/index.vue b/pages/index/index.vue index 749e925..a8f4b92 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -169,7 +169,7 @@ url: '/getJxInfo', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.schoolInfo = res.schoolInfo uni.setStorageSync("roles", res.roles) uni.setStorageSync("deptId", res.schoolInfo.deptId) @@ -181,7 +181,7 @@ url: '/drivingSchool/system/reservationCourse/applet/getHomeData', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.dataInfo = res.data } })