From 903890d942de1271784032ff18ac68749086b897 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 04 十二月 2023 13:05:28 +0800
Subject: [PATCH] #

---
 pages/login/login.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pages/login/login.vue b/pages/login/login.vue
index e7dfe8d..a9f4e9d 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -70,7 +70,8 @@
 				filename: '',
 				dialogContent: '',
 				codeTime: 60,
-				codeTimeShow: false
+				codeTimeShow: false,
+				download: '' 
 			}
 		},
 		onLoad: function() {
@@ -151,8 +152,10 @@
 						console.log(res);
 						var res = res.data
 						if (res.data) {
+							console.log(res);
 							that.filename = res.data.path
 							that.dialogContent = '鍙戠幇鏂扮増鏈�:' + res.data.version + ', 鏄惁绔嬪嵆鏇存柊'
+							that.download = res.data.url
 							that.$refs.upVersion.open()
 						} else {
 							uni.showToast({
@@ -174,7 +177,7 @@
 			},
 			downWgt() {
 				let that = this;
-				const downloadUrl = that.baseUrl + "/appVersion/downloadApp/" + that.filename
+				const downloadUrl = that.download
 				uni.showLoading({
 					title: '鏇存柊涓�︹��'
 				})

--
Gitblit v1.9.1