From 7c7ab225dbcaa163520f3743bacdd538a6ea6614 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 15 May 2024 13:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=92=8C=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E5=8F=AA=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E4=BF=9D=E5=AD=98=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/js/components/server/server-name-box.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/public/js/components/server/server-name-box.js b/web/public/js/components/server/server-name-box.js index 6b4e79b0..9bb84a05 100644 --- a/web/public/js/components/server/server-name-box.js +++ b/web/public/js/components/server/server-name-box.js @@ -19,6 +19,7 @@ Vue.component("server-name-box", { callback: function (resp) { var serverName = resp.data.serverName that.serverNames.push(serverName) + setTimeout(that.submitForm, 100) } }); }, @@ -34,6 +35,7 @@ Vue.component("server-name-box", { callback: function (resp) { var serverName = resp.data.serverName Vue.set(that.serverNames, index, serverName) + setTimeout(that.submitForm, 100) } }); }, @@ -69,6 +71,9 @@ Vue.component("server-name-box", { } }) return result + }, + submitForm: function () { + Tea.runActionOn(this.$refs.serverNamesRef.form) } }, watch: { @@ -95,7 +100,7 @@ Vue.component("server-name-box", { } }, template: `
- +
{{serverName.type}}