数据持久化和添加文档
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user