Jelajahi Sumber

Update add.html

hzgjq 5 tahun lalu
induk
melakukan
4b39a94d88
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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()