From 4b39a94d88314251e6198cf213932ec4a57ffea0 Mon Sep 17 00:00:00 2001 From: hzgjq <49267192+hzgjq@users.noreply.github.com> Date: Mon, 2 Mar 2020 20:56:32 +0800 Subject: [PATCH] Update add.html --- web/views/index/add.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/views/index/add.html b/web/views/index/add.html index ed2ee098..43b65a40 100644 --- a/web/views/index/add.html +++ b/web/views/index/add.html @@ -134,7 +134,7 @@

} $(function () { - $("#type").val('{{.type}}'); + $("#type").val(('{{.type}}' == '') ? 'tcp' : '{{.type}}'); resetForm() $("#type").on("change", function () { resetForm()