2025-02-13 09:59:20 +08:00
|
|
|
import App from './App'
|
|
|
|
// vuex状态管理
|
|
|
|
import store from '@/store';
|
|
|
|
//
|
|
|
|
import Vuex from 'vuex'
|
2025-02-15 16:09:39 +08:00
|
|
|
// 通用方法
|
|
|
|
import util from '@/common/js/util';
|
2025-02-13 09:59:20 +08:00
|
|
|
|
|
|
|
import TIM from '@tencentcloud/chat';
|
|
|
|
|
2025-02-15 16:09:39 +08:00
|
|
|
// const chat = TencentCloudChat.create({
|
|
|
|
// SDKAppID: 0,
|
|
|
|
// })
|
2025-02-13 09:59:20 +08:00
|
|
|
|
|
|
|
// 集成聊天
|
|
|
|
uni.$TIM = TIM
|
|
|
|
// 创建腾讯云im聊天
|
|
|
|
uni.$chat = TIM.create({
|
|
|
|
SDKAppID: util.config.TChat.SDKAppID,
|
|
|
|
})
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
|
|
|
import {
|
|
|
|
createSSRApp
|
|
|
|
} from 'vue'
|
|
|
|
export function createApp() {
|
|
|
|
const app = createSSRApp(App)
|
|
|
|
app.use(store)
|
|
|
|
|
|
|
|
return {
|
|
|
|
app,
|
|
|
|
Vuex
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// #endif
|