@uxda/appkit 4.2.34 → 4.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
|
@@ -916,7 +916,11 @@ function useHttp$3() {
|
|
|
916
916
|
|
|
917
917
|
var script$E = /* @__PURE__ */ defineComponent({
|
|
918
918
|
__name: "DeviceVersion",
|
|
919
|
+
props: {
|
|
920
|
+
versions: { type: String, required: false, default: "{}" }
|
|
921
|
+
},
|
|
919
922
|
setup(__props) {
|
|
923
|
+
const props = __props;
|
|
920
924
|
const showAlert = ref(false);
|
|
921
925
|
const safeArea = useSafeArea();
|
|
922
926
|
const topStype = computed(() => {
|
|
@@ -924,6 +928,10 @@ var script$E = /* @__PURE__ */ defineComponent({
|
|
|
924
928
|
});
|
|
925
929
|
const recommendVersions = ref();
|
|
926
930
|
const getPropertieByCode = debounce(async () => {
|
|
931
|
+
if (props?.versions !== "{}") {
|
|
932
|
+
recommendVersions.value = JSON.parse(props.versions);
|
|
933
|
+
return;
|
|
934
|
+
}
|
|
927
935
|
if (recommendVersions.value) return;
|
|
928
936
|
const $http = useHttp$3();
|
|
929
937
|
$http.get("/cas/properties/getPropertie", {
|
package/package.json
CHANGED
|
@@ -11,6 +11,15 @@ import Taro, { getSystemInfoSync } from '@tarojs/taro'
|
|
|
11
11
|
import { useHttp } from '../../balance/api'
|
|
12
12
|
import debounce from 'lodash-es/debounce'
|
|
13
13
|
|
|
14
|
+
const props = withDefaults(
|
|
15
|
+
defineProps<{
|
|
16
|
+
versions?: string
|
|
17
|
+
}>(),
|
|
18
|
+
{
|
|
19
|
+
versions: '{}',
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
|
|
14
23
|
const showAlert = ref(false)
|
|
15
24
|
const safeArea = useSafeArea()
|
|
16
25
|
|
|
@@ -21,6 +30,12 @@ const topStype = computed(() => {
|
|
|
21
30
|
const recommendVersions = ref()
|
|
22
31
|
// 获取系统配置 - 小程序推荐版本
|
|
23
32
|
const getPropertieByCode = debounce(async () => {
|
|
33
|
+
if (props?.versions !== '{}') {
|
|
34
|
+
recommendVersions.value = JSON.parse(props.versions)
|
|
35
|
+
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
|
|
24
39
|
if (recommendVersions.value) return
|
|
25
40
|
|
|
26
41
|
const $http = useHttp()
|