diff --git a/client/components/share/StdDialog.vue b/client/components/share/StdDialog.vue index 4dd8cbca..9abdff6c 100644 --- a/client/components/share/StdDialog.vue +++ b/client/components/share/StdDialog.vue @@ -2,7 +2,7 @@ -
+
@@ -24,7 +24,7 @@
-
+
@@ -62,8 +62,7 @@ class StdDialog extends Vue { caption = ''; message = ''; active = false; - alertType = false; - confirmType = false; + type = ''; created() { if (this.$root.addKeyHook) { @@ -76,8 +75,7 @@ class StdDialog extends Vue { this.message = message; this.ok = false; - this.alertType = false; - this.confirmType = false; + this.type = ''; } onHide() { @@ -103,7 +101,7 @@ class StdDialog extends Vue { } }; - this.alertType = true; + this.type = 'alert'; this.active = true; }); } @@ -120,7 +118,7 @@ class StdDialog extends Vue { } }; - this.confirmType = true; + this.type = 'confirm'; this.active = true; }); }