每次点击课程都会获取一下用户受众id

This commit is contained in:
nisen
2023-08-09 19:56:00 +08:00
parent 55e117b2c2
commit 054cf941fc

View File

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