This commit is contained in:
PQZ 2024-08-28 19:14:43 +08:00
parent defbc14180
commit c6aac43d68

View File

@ -205,10 +205,10 @@
}, },
getUserInfo() { getUserInfo() {
request({ request({
url: '/getJxInfo', url: '/jx/auth/getJxInfo',
method: 'get' method: 'get'
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 0) {
this.schoolInfo = res.data.schoolInfo this.schoolInfo = res.data.schoolInfo
uni.setStorageSync("roles", res.data.roles) uni.setStorageSync("roles", res.data.roles)
uni.setStorageSync("deptId", res.data.schoolInfo.deptId) uni.setStorageSync("deptId", res.data.schoolInfo.deptId)
@ -220,7 +220,7 @@
url: '/drivingSchool/system/reservationCourse/applet/getHomeData', url: '/drivingSchool/system/reservationCourse/applet/getHomeData',
method: 'get' method: 'get'
}).then((res) => { }).then((res) => {
if (res.code == 200) { if (res.code == 0) {
this.dataInfo = res.data this.dataInfo = res.data
} }
}) })