@uxda/appkit 1.2.34 → 1.2.36

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.
package/dist/index.js CHANGED
@@ -492,6 +492,17 @@ var script$h = /* @__PURE__ */ defineComponent({
492
492
  const topStype = computed(() => {
493
493
  return `top: ${safeArea.nav + safeArea.status}px;`;
494
494
  });
495
+ const recommendVersions = ref();
496
+ async function getPropertieByCode() {
497
+ if (recommendVersions.value)
498
+ return;
499
+ const $http = useHttp$1();
500
+ await $http.get("/cas/properties/getPropertie", {
501
+ code: "pcRecommendVersion"
502
+ }).then((res) => {
503
+ recommendVersions.value = JSON.parse(res.value || "{}");
504
+ });
505
+ }
495
506
  onMounted(async () => {
496
507
  await getPropertieByCode();
497
508
  const systemInfo = Taro.getSystemInfoSync();
@@ -512,17 +523,6 @@ var script$h = /* @__PURE__ */ defineComponent({
512
523
  showAlert.value = true;
513
524
  }
514
525
  });
515
- const recommendVersions = ref();
516
- async function getPropertieByCode() {
517
- if (recommendVersions.value)
518
- return;
519
- const $http = useHttp$1();
520
- $http.get("/cas/properties/getPropertie", {
521
- code: "pcRecommendVersion"
522
- }).then((res) => {
523
- recommendVersions.value = JSON.parse(res.value || "{}");
524
- });
525
- }
526
526
  return (_ctx, _cache) => {
527
527
  return showAlert.value ? (openBlock(), createBlock(script$i, {
528
528
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -22,6 +22,21 @@ const topStype = computed(() => {
22
22
  return `top: ${safeArea.nav + safeArea.status}px;`
23
23
  })
24
24
 
25
+ const recommendVersions = ref()
26
+ // 获取系统配置 - 小程序推荐版本
27
+ async function getPropertieByCode() {
28
+ if (recommendVersions.value) return
29
+
30
+ const $http = useHttp()
31
+ await $http
32
+ .get('/cas/properties/getPropertie', {
33
+ code: 'pcRecommendVersion',
34
+ })
35
+ .then((res: any) => {
36
+ recommendVersions.value = JSON.parse(res.value || '{}')
37
+ })
38
+ }
39
+
25
40
  onMounted(async () => {
26
41
  await getPropertieByCode()
27
42
 
@@ -47,21 +62,6 @@ onMounted(async () => {
47
62
  showAlert.value = true
48
63
  }
49
64
  })
50
-
51
- const recommendVersions = ref()
52
- // 获取系统配置 - 小程序推荐版本
53
- async function getPropertieByCode() {
54
- if (recommendVersions.value) return
55
-
56
- const $http = useHttp()
57
- $http
58
- .get('/cas/properties/getPropertie', {
59
- code: 'pcRecommendVersion',
60
- })
61
- .then((res: any) => {
62
- recommendVersions.value = JSON.parse(res.value || '{}')
63
- })
64
- }
65
65
  </script>
66
66
 
67
67
  <style lang="less"></style>