Commit 56990781 authored by JingChao's avatar JingChao
parents d27d9e52 df2f01a4
......@@ -97,7 +97,7 @@ export default {
},
focusin () {
let vm = this
let showFocus = vm.$parent.showFocusBorder ? vm.$parent.showFocusBorder : vm.showFocusBorder
let showFocus = vm.showFocusBorder vm.showFocusBorder : vm.$parent.showFocusBorder
vm.focus = 'focus'
if (showFocus) {
vm.focusBorder = 'focus-border'
......
......@@ -173,10 +173,14 @@ export default {
mounted () {
this.$el.setAttribute('vum-show-picture', '')
if (window.history && window.history.pushState) {
window.addEventListener('popstate', this.hide, false);//false阻止默认事件
}
},
destroyed () {
document.body.removeChild(this.$el)
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