提现功能需要添加
This commit is contained in:
19
App.vue
19
App.vue
@@ -1,15 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
|
||||
import { useTokenStore } from './stores/token'
|
||||
import { reLaunch } from './utils/router'
|
||||
import { useAuthUser } from './composables/useAuthUser'
|
||||
import { useUserStore } from './stores/user'
|
||||
|
||||
import { TUIChatKit } from './TUIKit';
|
||||
TUIChatKit.init();
|
||||
|
||||
const { token } = useAuthUser()
|
||||
const { loginTencentIM } = useUserStore()
|
||||
/** 静默登录逻辑 */
|
||||
const silentLogin = async () => {
|
||||
console.log(token.value, '==')
|
||||
if (token.value) {
|
||||
reLaunch('/pages/news-list/news-list')
|
||||
loginTencentIM()
|
||||
reLaunch('/TUIKit/components/TUIConversation/index')
|
||||
return
|
||||
}
|
||||
|
||||
@@ -34,4 +39,14 @@
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import './styles/global.scss';
|
||||
|
||||
/* common css for page */
|
||||
// uni-page-body,
|
||||
// html,
|
||||
// body,
|
||||
// page {
|
||||
// width: 100% !important;
|
||||
// height: 100% !important;
|
||||
// overflow: hidden;
|
||||
// }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user