Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xyxBooking-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-16 20:29:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d65d303c3b5d58e2d115c92deb468ea6b319d31
0d65d303
1 parent
55cc56c1
fix(useOfflineBookingCache): 过滤状态为3的离线预订项
仅缓存状态为3的账单项,确保只处理有效数据
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/composables/useOfflineBookingCache.js
src/composables/useOfflineBookingCache.js
View file @
0d65d30
...
...
@@ -165,7 +165,7 @@ export const refresh_offline_booking_cache = async ({ force = false } = {}) => {
const
{
code
,
data
,
msg
}
=
await
billOfflineAllAPI
()
if
(
code
&&
Array
.
isArray
(
data
))
{
const
normalized
=
data
.
map
(
normalize_bill_item
).
filter
((
item
)
=>
item
&&
item
.
pay_id
)
const
normalized
=
data
.
map
(
normalize_bill_item
).
filter
((
item
)
=>
item
&&
item
.
pay_id
&&
item
.
status
==
3
)
if
(
normalized
.
length
>
0
)
{
Taro
.
setStorageSync
(
OFFLINE_BOOKING_CACHE_KEY
,
normalized
)
}
...
...
Please
register
or
login
to post a comment