diff --git a/pages/index/index.vue b/pages/index/index.vue index 34654ac..294c0ab 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -205,10 +205,10 @@ }, getUserInfo() { request({ - url: '/getJxInfo', + url: '/jx/auth/getJxInfo', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.schoolInfo = res.data.schoolInfo uni.setStorageSync("roles", res.data.roles) uni.setStorageSync("deptId", res.data.schoolInfo.deptId) @@ -220,7 +220,7 @@ url: '/drivingSchool/system/reservationCourse/applet/getHomeData', method: 'get' }).then((res) => { - if (res.code == 200) { + if (res.code == 0) { this.dataInfo = res.data } })