-img").attr("src", "/user/qrcode/" + key)
                            }
                            $("#2fa-auth").modal("show");
                    } else {
                        alert(data.msg)
                    }
                }
            }
        }
    })

    $("#get_captcha").click(function () {
        let phone = $("#phone").val();
        let enable = $("#enable").val();
        if (!phone) {
            alert('请输入手机号！')
            return
        }

        let auth_type = 