",
              }),
              type: "success",
              duration: 1500,
            });
            reloadConf(resp.dnsConf);
          }
        } catch (err) {
          alert(`${err.toString()}`);
        }
      });
    });

    // 切换配置项
    document.getElementById("index").addEventListener('change', e => {
      configIndex = parseInt(e.target.value);
      showConf(configIndex);
    });

    // 初始化dnsConf
    reloadConf("{{.DnsConf}}");
  </script>

  <!-- 日志相关函数�