Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Apr 11, 2021
1 parent e2144c0 commit 565c977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/layout/AbsModule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export default {
},
methods: {
getNum() {
return parseInt(localStorage.getItem('ABS_BOX')) || 0
return parseInt(sessionStorage.getItem('ABS_BOX')) || 0
},
close() {
localStorage.setItem('ABS_BOX', this.getNum() + 1)
sessionStorage.setItem('ABS_BOX', this.getNum() + 1)
this.isShow = false
},
},
Expand Down

0 comments on commit 565c977

Please sign in to comment.