diff --git a/src/views/ebiz/poster/PosterPreview.vue b/src/views/ebiz/poster/PosterPreview.vue index a3653f532..bdc336eb8 100644 --- a/src/views/ebiz/poster/PosterPreview.vue +++ b/src/views/ebiz/poster/PosterPreview.vue @@ -151,6 +151,8 @@ export default { } if (this.posterType == 'product') { shareUrlWithQR(params).then(res => { + window.localStorage.removeItem('schoolName') + window.localStorage.removeItem('className') this.$toast.clear() if (res.result == 0) { this.imgUrl = config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.content.path}` @@ -164,6 +166,8 @@ export default { }) } else { shareUrl(params).then(res => { + window.localStorage.removeItem('schoolName') + window.localStorage.removeItem('className') this.$toast.clear() if (res.result == 0) { this.imgUrl = config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.content.path}` @@ -176,8 +180,7 @@ export default { } }) } - window.localStorage.removeItem('schoolName') - window.localStorage.removeItem('className') + }) }, // 获取base64