stellar-ui-plus 1.21.9 → 1.21.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"description": "应用密钥",
|
|
16
16
|
"type": "string",
|
|
17
17
|
"default": ""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "apiUrl",
|
|
21
|
+
"description": "更新API地址",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"default": "https://zboa.whzb.com/inte-cloud-dev/blade-system/api/inte/client/ver/currentDetail"
|
|
18
24
|
}
|
|
19
25
|
]
|
|
20
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { ref, reactive } from 'vue';
|
|
3
3
|
import propsData from './props';
|
|
4
4
|
import { type ClientData, type ResponseData, download } from './method';
|
|
5
5
|
|
|
@@ -22,7 +22,7 @@ const downloadedSize = ref('0');
|
|
|
22
22
|
const packageFileSize = ref('0');
|
|
23
23
|
const getData = (callback?: (resVersion: { name: string; code: string; updateFile: string }, version: string) => void) => {
|
|
24
24
|
uni.request({
|
|
25
|
-
url:
|
|
25
|
+
url: props.apiUrl,
|
|
26
26
|
method: 'GET',
|
|
27
27
|
header: {
|
|
28
28
|
Authorization: `Basic ${btoa(props.clientId + ':' + props.clientSecret)}`,
|