wName;
        document.getElementById(`index_${configIndex}`).textContent = newName;
      }
    });

    // 删除配置按钮被点击
    document.getElementById("delBtn").addEventListener('click', e => {
      e.preventDefault();
      const $index = document.getElementById("index");
      $index.options[configIndex].disabled = true;
      $index.options[configIndex].text = configIndex + 1 + " - Deleted";
      dnsConf[configIndex] = null;
      while (dnsConf[configIndex] === null && configIndex >= 0)