From 174b537f1d1d20d985b35f93d0c3d639e1683f95 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Fri, 12 May 2023 16:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/login.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/home/login.vue b/pages/home/login.vue index 277f075..5b5b2f0 100644 --- a/pages/home/login.vue +++ b/pages/home/login.vue @@ -146,7 +146,7 @@ export default { if(res.statu){ if(res.data.appVersion!=this.appVersion){ this.isShowModal=true - this.appDownLoadUrl=res.data.appDownloadUrl + this.appDownLoadUrl=host("version",res.data.appDownloadUrl) } } }, @@ -157,7 +157,8 @@ export default { this.modalOptions.modalTitle="开始下载" this.modalOptions.isDownApp=true this.modalOptions.isShowCancel=false - var dtask=plus.downloader.createDownload(host()+'/'+this.appDownLoadUrl,{ + console.log(this.appDownLoadUrl,'-----url----') + var dtask=plus.downloader.createDownload(this.appDownLoadUrl,{ filename: "_downloads/", timeout:30, retry:1 @@ -177,7 +178,7 @@ export default { this.modalOptions.modalContent="下载升级包失败!" } }) - console.log(dtask,'--dtask---') + console.log(dtask,'--dtask----') if(dtask){ dtask.addEventListener("statechanged",e=>{ console.log("totalSize",e.totalSize)