Commit e36a2ae7 authored by IvyXia123's avatar IvyXia123

localStorage

parent 8f0f08ac
...@@ -334,13 +334,13 @@ ...@@ -334,13 +334,13 @@
}, },
}, },
mounted() { mounted() {
let prompStr = localStorage.getItem('promp') // let prompStr = localStorage.getItem('promp')
if(prompStr) { // if(prompStr) {
this.promp = false // this.promp = false
}else { // }else {
localStorage.setItem('promp', 1) // localStorage.setItem('promp', 1)
this.promp = true // this.promp = true
} // }
}, },
methods:{ methods:{
// 页面初始化 // 页面初始化
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment