修改回来课程受众问题

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 localSessionKey: this.$xpage.constants.localCourseFiltersKey
}; };
}, },
// 受众需要每次刷新
created() { // created() {
let localKey = "user_" + this.userInfo.sysId + "_gids"; // let localKey = "user_" + this.userInfo.sysId + "_gids";
apiUserbasic.getInAudienceIds().then(rs => { // apiUserbasic.getInAudienceIds().then(rs => {
if (rs.status == 200) { // if (rs.status == 200) {
this.audiences = rs.result; // this.audiences = rs.result;
sessionStorage.setItem(localKey, this.audiences); // sessionStorage.setItem(localKey, this.audiences);
} else { // } else {
console.log(rs.message); // console.log(rs.message);
} // }
}) // })
}, // },
mounted() { mounted() {
let screenWidth = window.screen.availWidth; let screenWidth = window.screen.availWidth;
// if (screenWidth < 1280) { // if (screenWidth < 1280) {