需要添加直播接口
This commit is contained in:
11
App.vue
11
App.vue
@@ -3,15 +3,18 @@
|
||||
import { reLaunch } from './utils/router'
|
||||
import { useAuthUser } from './composables/useAuthUser'
|
||||
import { useUserStore } from './stores/user'
|
||||
|
||||
import { TUIChatKit } from './TUIKit'
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
import { setSdkLanguageFromSystem } from '@/uni_modules/tuikit-atomic-x/utils/setSdkLanguageFromSystem'
|
||||
// #endif
|
||||
|
||||
TUIChatKit.init()
|
||||
|
||||
const { token } = useAuthUser()
|
||||
const { loginTencentIM } = useUserStore()
|
||||
/** 静默登录逻辑 */
|
||||
const silentLogin = async () => {
|
||||
console.log(token.value, '==')
|
||||
if (token.value) {
|
||||
loginTencentIM()
|
||||
reLaunch('/TUIKit/components/TUIConversation/index')
|
||||
@@ -25,6 +28,10 @@
|
||||
onLaunch(() => {
|
||||
console.log('App Launch111')
|
||||
silentLogin()
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
setSdkLanguageFromSystem()
|
||||
// #endif
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
|
||||
Reference in New Issue
Block a user