mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
修复ck更新状态同步
This commit is contained in:
parent
806eeae7d2
commit
99d8a8dd23
|
@ -165,11 +165,11 @@ export default class CookieService {
|
|||
{ _id: payload._id },
|
||||
payload,
|
||||
{ returnUpdatedDocs: true },
|
||||
(err, docs) => {
|
||||
(err, num, doc) => {
|
||||
if (err) {
|
||||
this.logger.error(err);
|
||||
} else {
|
||||
resolve(docs as Cookie);
|
||||
resolve(doc as Cookie);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
|
|
@ -46,7 +46,7 @@ const CookieModal = ({
|
|||
});
|
||||
}
|
||||
setLoading(false);
|
||||
handleCancel(data);
|
||||
handleCancel(cookie ? [data] : data);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user