From e6a02c8b09a796e436a501e9b87d19e25c34c9d1 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期日, 07 四月 2024 15:53:37 +0800
Subject: [PATCH] #

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

diff --git a/pages/login/login.vue b/pages/login/login.vue
index e7dfe8d..fb7237e 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() {
@@ -98,7 +99,6 @@
 					method: 'POST',
 					success(res) {
 						res = res.data 
-						console.log(res);
 						_this.codeTimeShow = true
 						let time = setInterval(()=>{
 							_this.codeTime--
@@ -151,8 +151,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 +176,7 @@
 			},
 			downWgt() {
 				let that = this;
-				const downloadUrl = that.baseUrl + "/appVersion/downloadApp/" + that.filename
+				const downloadUrl = that.download
 				uni.showLoading({
 					title: '鏇存柊涓�︹��'
 				})

--
Gitblit v1.9.1