From 864fae8d21a29234298944dcbf20a04cb6270226 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Tue, 25 Nov 2025 17:33:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E6=94=B9=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/update.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/update.js b/utils/update.js index 5f81c6d..793c0be 100644 --- a/utils/update.js +++ b/utils/update.js @@ -1,6 +1,6 @@ /** * 应用版本更新工具类 - * 支持版本检查和 APK 下载安装 + * 支持版本检查和 APK 下载下载 */ import { checkAppVersion } from '@/api/update' @@ -339,7 +339,7 @@ const installApk = (filePath) => { }, () => { uni.showToast({ - title: '安装成功', + title: '下载成功', icon: 'success' }) // 安装成功后,延迟退出应用以便用户重启 @@ -348,19 +348,19 @@ const installApk = (filePath) => { }, 1500) }, (error) => { - console.error('安装失败:', error) + console.error('下载失败:', error) uni.showModal({ - title: '安装失败', - content: '请检查是否允许安装未知来源应用,或手动安装下载的 APK 文件', + title: '下载失败', + content: '请检查是否允许下载未知来源应用,或手动下载下载的 APK 文件', showCancel: false, confirmText: '知道了' }) } ) } catch (error) { - console.error('安装 APK 异常:', error) + console.error('下载 APK 异常:', error) uni.showToast({ - title: '安装失败', + title: '下载失败', icon: 'none' }) }