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