VUE empty the cache is emptied when logging out

   
Export DEFAULT {data () {return {theme: this. $ store.state.app.themecolor};}, mounted () {}, beforeDestroy () {}, methods: {}, mounted () {// Close browser When the window is emptied, the browser is cacked to the data of localStorage. WINDOW.ONBEFOREUNLOAD = Function (E) {var storage = window.localStorage; storage.clear ()}}};
html, body {width: 100% Height: 100%; Background: # f0f0f0; overflow: hidden;}. App-main {width: 100%; Height: 100%;}
If it is The page of the page, as long as each page is sympathy, you can register this event in the mounted method!
The implementation of the empty cache when the VUE exits the login is the full content of Xiaobian sharing, I hope I can give you a reference, I hope everyone supports Tumi Cloud.

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment