数据持久化和添加文档

This commit is contained in:
not-like-juvenile
2026-02-03 21:03:45 +08:00
parent 768140fda3
commit 3a0936c12e
5 changed files with 89 additions and 3 deletions

View File

@@ -405,6 +405,7 @@ import { getCurrentUserId, getCurrentUser } from '@/utils/store.uts'
console.log('loadAvailableOrders: query result=', res)
if (res && Array.isArray(res.data)) {
const fetched = (res.data as Array<any>).map((r:any) => this._transformTask(r))
console.log('loadAvailableOrders: transformed count=', fetched.length)
// 再次检查 currentTask避免并发情况下短暂展示可接单
if (this.currentTask) {
this.availableOrders = []