修复已知问题
This commit is contained in:
17
App.vue
17
App.vue
@@ -14,20 +14,27 @@
|
||||
const { token } = useAuthUser()
|
||||
const { loginTencentIM } = useUserStore()
|
||||
/** 静默登录逻辑 */
|
||||
const silentLogin = async () => {
|
||||
const silentLogin = async (e: any) => {
|
||||
if (token.value) {
|
||||
loginTencentIM()
|
||||
// reLaunch('/TUIKit/components/TUIConversation/index')
|
||||
return
|
||||
}
|
||||
|
||||
// 没有token去登录页
|
||||
reLaunch('/pages/login/login')
|
||||
console.log(e, '=====222==')
|
||||
if (e?.query?.invitationCode) {
|
||||
reLaunch('/pages/login/phone-register/phone-register', {
|
||||
invitationCode: e.query.invitationCode
|
||||
})
|
||||
} else {
|
||||
// 没有token去登录页
|
||||
reLaunch('/pages/login/login')
|
||||
}
|
||||
}
|
||||
|
||||
onLaunch(() => {
|
||||
onLaunch((e: any) => {
|
||||
console.log('App Launch111')
|
||||
silentLogin()
|
||||
silentLogin(e)
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
setSdkLanguageFromSystem()
|
||||
|
||||
Reference in New Issue
Block a user