Commit 85837c69 authored by JingChao's avatar JingChao

Update Modal.vue

parent 3dbe9cff
...@@ -80,7 +80,14 @@ export default { ...@@ -80,7 +80,14 @@ export default {
// e.stopPropagation() // e.stopPropagation()
}, },
hideModal (e) { hideModal (e) {
if(e.target.className.indexOf('modal-backdrop') === 0){ if(!e){
this.state = 3
setTimeout(() => {
this.state = 0
this.showModal = false
}, 250)
}
if(e && e.target && e.target.className.indexOf('modal-backdrop') === 0){
this.state = 3 this.state = 3
setTimeout(() => { setTimeout(() => {
this.state = 0 this.state = 0
......
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