This commit is contained in:
pengxiaolong
2025-05-20 00:10:07 +08:00
parent ff546bd9a9
commit 6107739077
34 changed files with 583 additions and 92 deletions

20
components/TUILogin.js Normal file
View File

@@ -0,0 +1,20 @@
import { TUILogin } from "@tencentcloud/tui-core";
function TUIlogin(
chatInfo,
info,
userSig,
) {
uni.$SDKAppID = chatInfo.appId; // Your SDKAppID
uni.$userID = info.userChatId; // Your userID
uni.$userSig = userSig; // Your userSig
TUILogin.login({
SDKAppID: uni.$SDKAppID,
userID: uni.$userID,
userSig: uni.$userSig,
useUploadPlugin: true, // If you need to send rich media messages, please set to true.
framework: `vue${vueVersion}`, // framework used vue2 / vue3
}).catch(() => {});
}
export default TUIlogin;