From c6aac43d68f7c11d91498e07ab14b25f36a6d425 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 28 Aug 2024 19:14:43 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } })