瀏覽代碼

Update add.html

hzgjq 5 年之前
父節點
當前提交
4b39a94d88
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()