diff --git a/pages/index/index.vue b/pages/index/index.vue index 369fe58..2ad0803 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -209,9 +209,9 @@ method: 'get' }).then((res) => { if (res.code == 0) { - this.schoolInfo = res.schoolInfo - uni.setStorageSync("roles", res.roles) - uni.setStorageSync("deptId", res.schoolInfo.deptId) + this.schoolInfo = res.data.schoolInfo + uni.setStorageSync("roles", res.data.roles) + uni.setStorageSync("deptId", res.data.schoolInfo.deptId) } }) },