优化页面
This commit is contained in:
23
App.vue
23
App.vue
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
|
||||
// #ifdef APP-PLUS || H5
|
||||
import TUIlogin from "./components/TUILogin.js";
|
||||
import { TUIChatKit } from './TUIKit';
|
||||
|
||||
TUIChatKit.init();
|
||||
// #endif
|
||||
@@ -19,27 +19,6 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
uni.getStorage({
|
||||
key: "userinfo",
|
||||
success: (res) => {
|
||||
this.info = res.data;
|
||||
},
|
||||
});
|
||||
uni.getStorage({
|
||||
key: "userSig",
|
||||
success: (res) => {
|
||||
this.userSig = res.data;
|
||||
},
|
||||
});
|
||||
uni.getStorage({
|
||||
key: "chatInfo",
|
||||
success: (res) => {
|
||||
this.chatInfo = res.data;
|
||||
},
|
||||
});
|
||||
if (this.userSig) {
|
||||
TUIlogin(this.chatInfo.appId, this.info.userChatId, this.userSig);
|
||||
}
|
||||
},
|
||||
provide() {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user