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) {