From 054cf941fc95941d98298ca22e59075f8758aeda Mon Sep 17 00:00:00 2001 From: nisen Date: Wed, 9 Aug 2023 19:56:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=AC=A1=E7=82=B9=E5=87=BB=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E9=83=BD=E4=BC=9A=E8=8E=B7=E5=8F=96=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=97=E4=BC=97id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 0467eec3..e5cf4c7d 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -663,6 +663,17 @@ export default { }; }, + created() { + let localKey = "user_" + this.userInfo.sysId + "_gids"; + apiUserbasic.getInAudienceIds().then(rs => { + if (rs.status == 200) { + this.audiences = rs.result; + sessionStorage.setItem(localKey, this.audiences); + } else { + console.log(rs.message); + } + }) + }, mounted() { let screenWidth = window.screen.availWidth; // if (screenWidth < 1280) {