From 512008bde8bb9f0baf7965683054ddef1c06fe6f Mon Sep 17 00:00:00 2001 From: chris <510148846@qq.com> Date: Thu, 7 Nov 2024 09:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=9A0.0.0.12=201?= =?UTF-8?q?=E3=80=81=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9B2=E3=80=81=E6=9B=B4=E6=8D=A2?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=80=83=E8=AF=95=E5=88=97=E8=A1=A8=E6=89=80?= =?UTF-8?q?=E5=8F=96id=E5=80=BCid=20-->=20studentid=EF=BC=9B=203=E3=80=81?= =?UTF-8?q?=E8=80=83=E8=AF=95=E8=AF=A6=E6=83=85=E6=B7=BB=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=8A=B6=E6=80=81=EF=BC=8C=E4=BC=98=E5=8C=96=E8=80=83?= =?UTF-8?q?=E8=AF=95=E6=8F=90=E4=BA=A4=E9=80=BB=E8=BE=91=EF=BC=9B4?= =?UTF-8?q?=E3=80=81=E7=AD=94=E9=A2=98=E5=99=A8=E5=8F=96=E6=B6=88=E7=A1=AE?= =?UTF-8?q?=E5=AE=9A=E7=AA=97=E5=8F=A3=EF=BC=9B5=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 15 +++++ .../ch-image-uploader/ch-image-uploader.vue | 8 ++- manifest.json | 18 +----- pages/IClicker/IClicker.vue | 39 +++++------ pages/exam/exam.vue | 2 +- pages/examDetails/examDetails.vue | 64 ++++++++++++++----- pages/index/index.scss | 8 ++- pages/index/index.vue | 5 +- pages/quesDetail/quesDetail.scss | 7 +- pages/quesDetail/quesDetail.vue | 25 ++++++-- pages/setting/setting.vue | 34 ++++++---- utils/network/request.js | 2 +- 12 files changed, 144 insertions(+), 83 deletions(-) diff --git a/App.vue b/App.vue index f86a9fe..7a3252b 100644 --- a/App.vue +++ b/App.vue @@ -3,6 +3,7 @@ import { onBeforeMount } from 'vue' // #ifdef APP + import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update'; import { useSystemStore } from '@/store/system.js'; const systemStore = useSystemStore() // #endif @@ -15,6 +16,7 @@ // #ifdef APP const appInfo = uni.getAppBaseInfo() systemStore.setAppInfo(appInfo) + checkAppUpdate() // #endif uni.getNetworkType({ @@ -46,6 +48,19 @@ userStore.setUserInfo(userInfo) } }) + + // 检查更新 + function checkAppUpdate () { + // #ifdef APP + checkUpdate().then(res => { + console.log('检查更新结果:', res) + }).catch(error => { + console.log("检查更新错误:", error) + }).finally(() => { + console.log('检查更新结束') + }) + // #endif + }