@uxda/appkit 4.3.26 → 4.3.27

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
@@ -3971,7 +3971,10 @@ var script$A = /* @__PURE__ */ defineComponent({
3971
3971
  balance.value = res.balance;
3972
3972
  amounts.value = res.paymentCaseConfigVOS;
3973
3973
  if (!props.headerApp) {
3974
- amounts.value = amounts.value.filter((item) => item.paymentAmount === 5e3);
3974
+ const has5000 = amounts.value.some((item) => item.paymentAmount === 5e3);
3975
+ if (has5000) {
3976
+ amounts.value = amounts.value.filter((item) => item.paymentAmount === 5e3);
3977
+ }
3975
3978
  }
3976
3979
  emit("loaded");
3977
3980
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxda/appkit",
3
- "version": "4.3.26",
3
+ "version": "4.3.27",
4
4
  "description": "小程序应用开发包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.ts",
@@ -224,7 +224,10 @@ onMounted(() => {
224
224
  amounts.value = res.paymentCaseConfigVOS
225
225
  // 如果没有应用权限,只显示5000元多充值档位
226
226
  if (!props.headerApp) {
227
- amounts.value = amounts.value.filter((item: any) => item.paymentAmount === 5000)
227
+ const has5000 = amounts.value.some((item: any) => item.paymentAmount === 5000)
228
+ if (has5000) {
229
+ amounts.value = amounts.value.filter((item: any) => item.paymentAmount === 5000)
230
+ }
228
231
  }
229
232
  emit('loaded')
230
233
  })