Ver código fonte

Update add.html

hzgjq 5 anos atrás
pai
commit
4b39a94d88
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      web/views/index/add.html

+ 1 - 1
web/views/index/add.html

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