Commit b510f35d authored by JingChao's avatar JingChao

Update Modal.vue

parent 80e4cb72
......@@ -80,7 +80,14 @@ export default {
// e.stopPropagation()
},
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
setTimeout(() => {
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