From 970a254da7f0fbc15f7b61d67126c4e2403e9c6f Mon Sep 17 00:00:00 2001 From: NiSen Date: Thu, 19 Oct 2023 14:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=9E=E6=9D=A5=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=8F=97=E4=BC=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 72da7de1..39b0f4c0 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -667,18 +667,18 @@ export default { localSessionKey: this.$xpage.constants.localCourseFiltersKey }; }, - - 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); - } - }) - }, + // 受众需要每次刷新 + // 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) {