This commit is contained in:
duan
2025-09-29 10:42:48 +08:00
parent 89db955ec1
commit 096f591123
80 changed files with 8735 additions and 3286 deletions

View File

@@ -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)