Commit 2c8f19a1 authored by youjie's avatar youjie

no message

parent f2190fe5
......@@ -165,11 +165,6 @@ const loginMsg = reactive({
})
const loginMethods = ref([
// {
// label: 'f',
// key: 7,
// url: f,
// },
{
label: 'G',
key: 1,
......@@ -191,6 +186,11 @@ const loginMethods = ref([
key: 3,
url: line,
},
// {
// label: 'f',
// key: 7,
// url: f,
// },
])
// 验证规则调整
......@@ -273,7 +273,7 @@ const handleClick = (path: string) => {
}
const toggleLoginType = (type: number) => {
if(type==3) return Message.error(t('login.loginTypeNotSupport'))
if(type==3||type==7) return Message.error(t('login.loginTypeNotSupport'))
if(type==2) return getAppIdRedirectUri()
loginMsg.reType = type
}
......@@ -375,20 +375,6 @@ const handleLogin = async () => {
}
}
// 检查是否需要验证
const checkNeedVerify = async () => {
try {
const response = await ErpUserService.NeedVerifyStatusAsync()
if (response.data.resultCode === ApiResult.SUCCESS) {
needVerify.value = response.data.data === 1
} else {
needVerify.value = true
}
} catch (error) {
needVerify.value = true
}
}
// 初始化
const init = async () => {
// 如果已经登录且是正常代理商,直接跳转到仪表盘
......@@ -403,19 +389,17 @@ const init = async () => {
return
}
}
await checkNeedVerify()
}
init()
onMounted(async () => {
try {
await initGoogleSDK();
// 确保 SDK 加载完成后渲染按钮
await new Promise(resolve => setTimeout(resolve));
renderGoogleButton()
const code = router.query.code;
const code = router.query?.code || null
if (code) {
getOpenIdByCode(code)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment