Commit 9f4b3be4 authored by JingChao's avatar JingChao

option-item

parent 0c6219e2
......@@ -174,13 +174,13 @@ export default {
mounted () {
this.$el.setAttribute('vum-show-picture', '')
if (window.history && window.history.pushState) {
window.addEventListener('popstate', this.hide, false);//false阻止默认事件
window.addEventListener('popstate', this.hide, false)// false阻止默认事件
}
},
destroyed () {
document.body.removeChild(this.$el)
window.removeEventListener('popstate', this.hide, false);//false阻止默认事件
window.removeEventListener('popstate', this.hide, false)// false阻止默认事件
},
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