fix: category=Inventory包含Abnormal状态,与统计口径一致
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -891,7 +891,7 @@ app.get('/list', async (c) => {
|
|||||||
}
|
}
|
||||||
if (category) {
|
if (category) {
|
||||||
if (category === 'Inventory') {
|
if (category === 'Inventory') {
|
||||||
filtered = filtered.filter((v) => v.status === 'Inventory');
|
filtered = filtered.filter((v) => v.status === 'Inventory' || v.status === 'Abnormal');
|
||||||
} else if (category === 'Operating') {
|
} else if (category === 'Operating') {
|
||||||
filtered = filtered.filter((v) => v.status === 'Operating');
|
filtered = filtered.filter((v) => v.status === 'Operating');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user