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.
@@ -9,4 +9,9 @@ export default {
9
9
  type: String,
10
10
  default: () => '',
11
11
  },
12
+ /** API地址 */
13
+ apiUrl: {
14
+ type: String,
15
+ default: () => 'https://zboa.whzb.com/inte-cloud-dev/blade-system/api/inte/client/ver/currentDetail',
16
+ },
12
17
  };
@@ -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 { onMounted, ref, reactive } from 'vue';
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: 'http://172.16.118.216:30000/blade-system/api/inte/client/ver/currentDetail',
25
+ url: props.apiUrl,
26
26
  method: 'GET',
27
27
  header: {
28
28
  Authorization: `Basic ${btoa(props.clientId + ':' + props.clientSecret)}`,
@@ -239,7 +239,6 @@ function loginBtnClick() {
239
239
  text-align: center;
240
240
  width: 60rpx;
241
241
  height: 60rpx;
242
- background: #dddddd;
243
242
  border-radius: 12rpx;
244
243
  }
245
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.21.9",
3
+ "version": "1.21.10",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",