mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
perf: 优化继续添加任务数据处理
This commit is contained in:
parent
47a7876505
commit
6cf64ce538
@ -301,7 +301,10 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
'addData.owner'(owner) {
|
'addData.owner'(owner, newOwner) {
|
||||||
|
if (JSON.stringify(owner) === JSON.stringify(newOwner)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.addData.assist = this.addData.assist.filter(item => {
|
this.addData.assist = this.addData.assist.filter(item => {
|
||||||
return owner.indexOf(item) === -1;
|
return owner.indexOf(item) === -1;
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user