代码更新
This commit is contained in:
11
App.vue
11
App.vue
@@ -3,10 +3,15 @@
|
||||
App.vue本身不是页面,这里不能编写视图元素,也就是没有<template>
|
||||
-->
|
||||
<script setup>
|
||||
import {
|
||||
onLaunch
|
||||
} from '@dcloudio/uni-app';
|
||||
import { onLaunch } from '@dcloudio/uni-app';
|
||||
import { getFindBySource } from '@/http/yskApi/version.js'
|
||||
import appConfig from '@/config/appConfig.js';
|
||||
import { provide } from 'vue';
|
||||
|
||||
import WebsocketUtil from '@/commons/utils/websocket.js'
|
||||
const websocketUtil = new WebsocketUtil(appConfig.wss, 5000); // 创建 WebSocket 工具类实例
|
||||
provide('websocketUtil', websocketUtil); // 提供给所有子组件
|
||||
|
||||
onLaunch(() => {
|
||||
let that = this
|
||||
uni.hideTabBar()
|
||||
|
||||
Reference in New Issue
Block a user