  globalConf[name] = e.target.value;
          });
          break;
      }
    });

    // 处理切换IP获取方式时的UI变化
    document.querySelectorAll('[name=Ipv4GetType], [name=Ipv6GetType]').forEach($input => {
      $input.addEventListener('click', e => {
        const $target = e.target;
        const $group = $target.closest('.form-group');
        const $card = $target.closest('.portlet__body');
        $card.querySelectorAll('[data-visible]').forEach($el => {
          $el.style.display =