修改回来课程受众问题

This commit is contained in:
NiSen
2023-10-19 14:46:00 +08:00
parent 7d3f3f1483
commit 970a254da7

View File

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