From 985c8fa766ada7c0238a651002637ea86d8d25ba Mon Sep 17 00:00:00 2001 From: YuanHuakk <1751826683@qq.com> Date: Wed, 5 Nov 2025 11:32:38 +0800 Subject: [PATCH] release(other): 4.0.15 --- components.d.ts | 2 +- package.json | 4 ++-- src/pages/users/order_list/index.vue | 6 +++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components.d.ts b/components.d.ts index 14a87fa..ea47d18 100644 --- a/components.d.ts +++ b/components.d.ts @@ -3,7 +3,7 @@ // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 // biome-ignore lint: disable -export {}; +export {} /* prettier-ignore */ declare module 'vue' { diff --git a/package.json b/package.json index d0b88a3..3f52682 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "jdt-user", - "version": "4.0.14", + "version": "4.0.15", "taroConfig": { - "version": "4.0.14" + "version": "4.0.15" }, "scripts": { "build:weapp": "taro build --type weapp", diff --git a/src/pages/users/order_list/index.vue b/src/pages/users/order_list/index.vue index 311f013..6a72ec0 100644 --- a/src/pages/users/order_list/index.vue +++ b/src/pages/users/order_list/index.vue @@ -97,7 +97,11 @@ const getList = async () => { const res = await getActiveOrderList({ status: tabValue.value, }); - orderList.value = res.data.data; + if (res.data.data.length >= 2) { + orderList.value = res.data.data.slice(0, 2); + } else { + orderList.value = res.data.data; + } } catch (error) { Taro.showToast({ title: error.msg,