Commit 2c8f19a1 authored by youjie's avatar youjie

no message

parent f2190fe5
...@@ -165,11 +165,6 @@ const loginMsg = reactive({ ...@@ -165,11 +165,6 @@ const loginMsg = reactive({
}) })
const loginMethods = ref([ const loginMethods = ref([
// {
// label: 'f',
// key: 7,
// url: f,
// },
{ {
label: 'G', label: 'G',
key: 1, key: 1,
...@@ -191,6 +186,11 @@ const loginMethods = ref([ ...@@ -191,6 +186,11 @@ const loginMethods = ref([
key: 3, key: 3,
url: line, url: line,
}, },
// {
// label: 'f',
// key: 7,
// url: f,
// },
]) ])
// 验证规则调整 // 验证规则调整
...@@ -273,7 +273,7 @@ const handleClick = (path: string) => { ...@@ -273,7 +273,7 @@ const handleClick = (path: string) => {
} }
const toggleLoginType = (type: number) => { 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() if(type==2) return getAppIdRedirectUri()
loginMsg.reType = type loginMsg.reType = type
} }
...@@ -375,20 +375,6 @@ const handleLogin = async () => { ...@@ -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 () => { const init = async () => {
// 如果已经登录且是正常代理商,直接跳转到仪表盘 // 如果已经登录且是正常代理商,直接跳转到仪表盘
...@@ -403,19 +389,17 @@ const init = async () => { ...@@ -403,19 +389,17 @@ const init = async () => {
return return
} }
} }
await checkNeedVerify()
} }
init() init()
onMounted(async () => { onMounted(async () => {
try { try {
await initGoogleSDK(); await initGoogleSDK();
// 确保 SDK 加载完成后渲染按钮 // 确保 SDK 加载完成后渲染按钮
await new Promise(resolve => setTimeout(resolve)); await new Promise(resolve => setTimeout(resolve));
renderGoogleButton() renderGoogleButton()
const code = router.query.code; const code = router.query?.code || null
if (code) { if (code) {
getOpenIdByCode(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