mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-14 04:32:49 +00:00
fix: 修复草稿出现上一次内容的情况
This commit is contained in:
parent
f750a6aec2
commit
72e475cb84
@ -695,8 +695,12 @@ export default {
|
|||||||
return this.dialogId > 0 ? (this.cacheDialogs.find(({id}) => id == this.dialogId) || {}) : {};
|
return this.dialogId > 0 ? (this.cacheDialogs.find(({id}) => id == this.dialogId) || {}) : {};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
draftId() {
|
||||||
|
return this.dialogId || `t_${this.taskId}`
|
||||||
|
},
|
||||||
|
|
||||||
draftData() {
|
draftData() {
|
||||||
return this.getDialogDraft(this.dialogId)?.content || ''
|
return this.getDialogDraft(this.draftId)?.content || ''
|
||||||
},
|
},
|
||||||
|
|
||||||
quoteData() {
|
quoteData() {
|
||||||
@ -727,7 +731,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.simpleMode) {
|
if (!this.simpleMode) {
|
||||||
this.$store.dispatch("saveDialogDraft", {id: this.dialogId, content: val})
|
this.$store.dispatch("saveDialogDraft", {id: this.draftId, content: val})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user