更换正式环境,测试修改
This commit is contained in:
6
App.vue
6
App.vue
@@ -6,13 +6,15 @@ App.vue本身不是页面,这里不能编写视图元素,也就是没有<tem
|
||||
import { onLaunch } from '@dcloudio/uni-app';
|
||||
import { getVersion } from '@/http/api/index.js'
|
||||
import appConfig from '@/config/appConfig.js';
|
||||
import { provide } from 'vue';
|
||||
|
||||
import { provide,onMounted } from 'vue';
|
||||
import WebsocketUtil from '@/commons/utils/websocket.js'
|
||||
|
||||
const websocketUtil = new WebsocketUtil(appConfig.wss, 5000); // 创建 WebSocket 工具类实例
|
||||
provide('websocketUtil', websocketUtil); // 提供给所有子组件
|
||||
onMounted(() => {
|
||||
|
||||
|
||||
});
|
||||
onLaunch(() => {
|
||||
let that = this
|
||||
uni.hideTabBar()
|
||||
|
||||
Reference in New Issue
Block a user