top
        // iframe内使用ci模式
        if (MODE_CONFIG === 'saas' && inIframe) {
            MODE_CONFIG = 'ci'
        }

        window.getLoginUrl = function (cUrl = location.href) {
            if (/\{+curl\}+/i.test(LOGIN_SERVICE_URL)) {
                return LOGIN_SERVICE_URL.replace(/\{+curl\}+/i, encodeURIComponent(cUrl))
            } else if (/=%s/.test(LOGIN_SERVICE_URL)) {
                return LOGIN_SERVICE_URL.replace(/%s/, cUrl)
            } else {
                const loginUrl = 