diff --git a/App.vue b/App.vue index b244026..839343b 100644 --- a/App.vue +++ b/App.vue @@ -9,9 +9,15 @@ import { TUIChatKit } from './TUIKit' import { getIpBlack } from './api' + TUIChatKit.init() - const { token } = useAuthUser() + // #ifdef APP-PLUS + uni.$TUICallKit = uni.requireNativePlugin('TencentCloud-TUICallKit') + console.log(uni.$TUICallKit, 'TUICallKit | ok') // 本地日志 + // #endif + + const { token, tencentUserSig } = useAuthUser() const { loginTencentIM } = useUserStore() /** 静默登录逻辑 */ const silentLogin = async (e: any) => { @@ -21,7 +27,7 @@ return } - console.log(e, '=====222==') + console.log(tencentUserSig, '=====222==') if (e?.query?.invitationCode) { reLaunch('/pages/login/phone-register/phone-register', { invitationCode: e.query.invitationCode diff --git a/TUIKit/components/TUIChat/index.vue b/TUIKit/components/TUIChat/index.vue index e4e607f..58b7b70 100644 --- a/TUIKit/components/TUIChat/index.vue +++ b/TUIKit/components/TUIChat/index.vue @@ -1,6 +1,8 @@