Files
tk-mini-program/App.vue
pengxiaolong 050ceedd59 优化页面
2025-05-30 22:04:45 +08:00

53 lines
998 B
Vue

<script lang="ts">
// #ifdef APP-PLUS || H5
import { TUIChatKit } from './TUIKit';
import { useCounterStore } from '@/stores/counter'
const counter = useCounterStore()
TUIChatKit.init();
// #endif
// Required information
// You can get userSig from TencentCloud chat console for Testing TUIKit.
// Deploy production environment please get it from your server.
// View https://cloud.tencent.com/document/product/269/32688
export default {
data() {
return {
info: {},
userSig: "",
chatInfo: {},
};
},
onLoad(option) {
uni.getStorage({
key: "userinfo",
success: (res) => {
this.info = res.data;
counter.$patch({ myitem:this.info})
},
fail: () => {
},
})
},
provide() {
return {
$global: {
lastPage: null,
},
};
},
};
</script>
<style>
/* common css for page */
uni-page-body,
html,
body,
page {
width: 100% !important;
height: 100% !important;
overflow: hidden;
}
</style>