@uxda/appkit 1.2.62 → 1.2.63

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
@@ -2737,7 +2737,7 @@ var script$7 = /* @__PURE__ */ defineComponent({
2737
2737
  });
2738
2738
  let { path, size } = csRes.tempFiles[0];
2739
2739
  const compressImg = await taroImgCompress(path, getCompressQuality(size)) || {};
2740
- const filePath = compressImg.tempFilePath ?? path;
2740
+ const filePath = compressImg.tempFilePath || path;
2741
2741
  Taro.showLoading({ title: "\u8EAB\u4EFD\u8BC1\u8BC6\u522B\u4E2D.." });
2742
2742
  const session = appKitOptions.token();
2743
2743
  const baseUrl = appKitOptions.baseUrl();
@@ -2879,8 +2879,8 @@ var script$5 = /* @__PURE__ */ defineComponent({
2879
2879
  shortId: region.shortId,
2880
2880
  label: region.name,
2881
2881
  children: []
2882
- })) ?? []
2883
- })) ?? []
2882
+ })) || []
2883
+ })) || []
2884
2884
  };
2885
2885
  });
2886
2886
  });
@@ -2892,11 +2892,11 @@ var script$5 = /* @__PURE__ */ defineComponent({
2892
2892
  if (props.type === "province") {
2893
2893
  return [provinceOption];
2894
2894
  }
2895
- const cityOption = (provinceOption[tmpSelectedIndex.value[0]] || {}).children ?? [];
2895
+ const cityOption = (provinceOption[tmpSelectedIndex.value[0]] || {}).children || [];
2896
2896
  if (props.type === "city") {
2897
2897
  return [provinceOption, cityOption];
2898
2898
  }
2899
- const regionOption = (cityOption[tmpSelectedIndex.value[1]] || {}).children ?? [];
2899
+ const regionOption = (cityOption[tmpSelectedIndex.value[1]] || {}).children || [];
2900
2900
  return [provinceOption, cityOption, regionOption];
2901
2901
  });
2902
2902
  function init() {
@@ -3513,7 +3513,7 @@ function useHttp() {
3513
3513
  function useNotice() {
3514
3514
  async function noticeClick(item, cb) {
3515
3515
  if (item.isRead === 0) {
3516
- await toReadFun([item.id ?? item.msgId]);
3516
+ await toReadFun([item.id || item.msgId]);
3517
3517
  }
3518
3518
  if (item.link) {
3519
3519
  cb && cb(item.link);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -75,8 +75,8 @@ const areaFormatOptions = computed<AreaItem[]>(() => {
75
75
  shortId: region.shortId,
76
76
  label: region.name,
77
77
  children: [],
78
- })) ?? [],
79
- })) ?? [],
78
+ })) || [],
79
+ })) || [],
80
80
  }
81
81
  })
82
82
  })
@@ -90,11 +90,11 @@ const options = computed<AreaItem[][]>(() => {
90
90
  if (props.type === 'province') {
91
91
  return [provinceOption]
92
92
  }
93
- const cityOption = (provinceOption[tmpSelectedIndex.value[0]] || {}).children ?? []
93
+ const cityOption = (provinceOption[tmpSelectedIndex.value[0]] || {}).children || []
94
94
  if (props.type === 'city') {
95
95
  return [provinceOption, cityOption]
96
96
  }
97
- const regionOption = (cityOption[tmpSelectedIndex.value[1]] || {}).children ?? []
97
+ const regionOption = (cityOption[tmpSelectedIndex.value[1]] || {}).children || []
98
98
  return [provinceOption, cityOption, regionOption]
99
99
  })
100
100
 
@@ -18,7 +18,7 @@ const props = withDefaults(defineProps<SearchType>(), {
18
18
  })
19
19
 
20
20
  watchPostEffect(() => {
21
- key.value = props.value ?? ''
21
+ key.value = props.value || ''
22
22
  })
23
23
 
24
24
  const emit = defineEmits(['search', 'focus', 'clear'])
@@ -47,7 +47,7 @@ async function ocrIDCard() {
47
47
  })
48
48
  let { path, size } = csRes.tempFiles[0]
49
49
  const compressImg: any = (await taroImgCompress(path, getCompressQuality(size))) || {}
50
- const filePath = compressImg.tempFilePath ?? path
50
+ const filePath = compressImg.tempFilePath || path
51
51
  Taro.showLoading({ title: '身份证识别中..' })
52
52
  const session = appKitOptions.token()
53
53
  const baseUrl = appKitOptions.baseUrl()
@@ -4,7 +4,7 @@ export function useNotice() {
4
4
  // 点击消息时
5
5
  async function noticeClick(item: any, cb?: Function) {
6
6
  if (item.isRead === 0) {
7
- await toReadFun([item.id ?? item.msgId])
7
+ await toReadFun([item.id || item.msgId])
8
8
  }
9
9
  if (item.link) {
10
10
  cb && cb(item.link)