$("#auth_type").val();
        let data = twofa(enable, auth_type);
        if (data.status === 0) {
            init_countdown(this);
            alert('验证码已发送，5分钟内有效');
        }
    })

    $("#2fa").on('show.bs.modal',function() {
        $('input[name="2fa"]').each(function (i) {
            $(this).bootstrapSwitch({
                onText: "启用",
                offText: "禁用",
                onColor: "success",
                size: "small",
            })
        })
  