diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue
index 00b8d1d..63cf6ee 100644
--- a/src/components/modal/modal.vue
+++ b/src/components/modal/modal.vue
@@ -197,11 +197,12 @@
visible (val) {
if (val === false) {
this.buttonLoading = false;
- setTimeout(() => {
+ this.timer = setTimeout(() => {
this.wrapShow = false;
this.removeScrollEffect();
}, 300);
} else {
+ if (this.timer) clearTimeout(this.timer);
this.wrapShow = true;
this.addScrollEffect();
}
diff --git a/test/routers/more.vue b/test/routers/more.vue
index fa1445a..3c351b4 100644
--- a/test/routers/more.vue
+++ b/test/routers/more.vue
@@ -4,16 +4,32 @@
}
-
-
-
-
- 标签二的内容
- 标签三的内容
-
+ 显示对话框
+
+ 对话框内容
+ 对话框内容
+ 对话框内容
+
--
libgit2 0.21.4