From 33debf60e6b7d22e5b6ecd7799341b9e901e02f0 Mon Sep 17 00:00:00 2001 From: PQZ Date: Wed, 28 Aug 2024 17:10:54 +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 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) } }) },