From fc7aa9c6ef30847d883cbc162924b85e4393d896 Mon Sep 17 00:00:00 2001
From: wanglihui <1769794040@qq.com>
Date: Wed, 6 Nov 2024 20:18:51 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9EMac=E3=80=81?=
=?UTF-8?q?Window=E3=80=81Linux=E5=BA=94=E7=94=A8=E5=8D=87=E7=BA=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/BdAppVersion/index.vue | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/components/BdAppVersion/index.vue b/src/components/BdAppVersion/index.vue
index a14ec9a..28634cd 100644
--- a/src/components/BdAppVersion/index.vue
+++ b/src/components/BdAppVersion/index.vue
@@ -15,6 +15,9 @@
Android
IOS
+ Mac
+ Windows
+ Linux
@@ -34,11 +37,19 @@
:on-success="onFileSuccess"
>
- 点击上传APK
+ 点击上传安装包
+
+
+
@@ -96,7 +107,8 @@ const formData = reactive({
os: 'android',
is_force: 0,
update_desc: '',
- download_url: ''
+ download_url: '',
+ signature: ''
});
/**
@@ -115,7 +127,7 @@ const beforeUploadFile = async (rawFile: any) => {
const res = (await feileGet(fileData)) as any;
if (res.url) {
- actionURL.value = res.url;
+ actionURL.value = `${res.url}&signature=1`;
return true;
} else {
return false;
@@ -126,6 +138,7 @@ const beforeUploadFile = async (rawFile: any) => {
const onFileSuccess = (response: any, _uploadFile: any) => {
console.log(response);
formData.download_url = response.path;
+ formData.signature = response.sha512;
};
// 取消