Commit e36a2ae7 authored by IvyXia123's avatar IvyXia123

localStorage

parent 8f0f08ac
......@@ -334,13 +334,13 @@
},
},
mounted() {
let prompStr = localStorage.getItem('promp')
if(prompStr) {
this.promp = false
}else {
localStorage.setItem('promp', 1)
this.promp = true
}
// let prompStr = localStorage.getItem('promp')
// if(prompStr) {
// this.promp = false
// }else {
// localStorage.setItem('promp', 1)
// this.promp = true
// }
},
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