2024-01-16 14:59:06 +08:00

25 lines
452 B
JavaScript

// index.js
const app = getApp()
Page({
data: {
title: '患者姓名',
height: app.globalData.height,
},
onLoad() {
console.log("onLoad chat_session")
},
onUnload() {
},
onShow(){
let _this = this;
let interval = setInterval(() => {
if(app.globalData.chat_sdk_ready){
const TUIKit = _this.selectComponent('#TUIKit');
TUIKit.init();
clearInterval(interval);
}
}, 100);
}
})