视频会议

This commit is contained in:
duoaohui
2026-05-23 14:15:19 +08:00
parent 2689301721
commit 2e66717932
5 changed files with 130 additions and 49 deletions

View File

@@ -95,6 +95,29 @@ import { useChatStore } from '@/store/chat'
import { useContactStore } from '@/store/contact'
import { useNotifyStore } from '@/store/notify'
function readSsoQueryFromLocation() {
try {
if (typeof window === 'undefined') return ''
const hash = String(window.location.hash || '')
if (hash.indexOf('/pages/auth/sso') >= 0 && hash.indexOf('?') >= 0) {
return hash.slice(hash.indexOf('?') + 1)
}
const search = String(window.location.search || '').replace(/^\?/, '')
if (search.indexOf('payload=') >= 0 || search.indexOf('token=') >= 0 || search.indexOf('cloudLawSso=') >= 0) {
return search
}
} catch (e) {}
return ''
}
function redirectToSsoIfPresent() {
const query = readSsoQueryFromLocation()
if (!query) return false
console.warn('[Login] detected SSO params on login page, redirect to SSO')
uni.redirectTo({ url: `/pages/auth/sso?${query}` })
return true
}
export default {
name: 'LoginPage',
data() {
@@ -106,6 +129,9 @@ export default {
errors: { account: '', password: '' }
}
},
onLoad() {
redirectToSsoIfPresent()
},
methods: {
/** 失焦时触发对应字段校验 */
onBlur(field) {