update
This commit is contained in:
9
App.vue
9
App.vue
@@ -3,14 +3,20 @@
|
||||
App.vue本身不是页面,这里不能编写视图元素,也就是没有<template>
|
||||
-->
|
||||
<script setup>
|
||||
// 更新
|
||||
import {
|
||||
ref,
|
||||
reactive
|
||||
reactive, provide,onMounted
|
||||
} from 'vue';
|
||||
import appConfig from '@/config/appConfig.js';
|
||||
import {
|
||||
onLaunch,onHide
|
||||
} from '@dcloudio/uni-app';
|
||||
import WebsocketUtil from '@/http/websock.js'
|
||||
const websocketUtil = new WebsocketUtil(appConfig.wss, 5000); // 创建 WebSocket 工具类实例
|
||||
provide('websocketUtil', websocketUtil); // 提供给所有子组件
|
||||
|
||||
|
||||
import { getFindBySource } from '@/http/yskApi/version.js'
|
||||
onHide(()=>{
|
||||
|
||||
@@ -23,7 +29,6 @@ App.vue本身不是页面,这里不能编写视图元素,也就是没有<tem
|
||||
//请求后台接口 解析数据 对比版本
|
||||
console.log("widgetInfo==",widgetInfo)
|
||||
getFindBySource({source:'点餐宝'}).then(res => {
|
||||
console.log('res');
|
||||
if (res.url && widgetInfo.version < res.version) {
|
||||
let downloadLink = res.url;
|
||||
console.log(downloadLink)
|
||||
|
||||
Reference in New Issue
Block a user