mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 03:03:41 +00:00
perf: 优化任务窗口输入框草稿
This commit is contained in:
parent
b9ddc0cf1f
commit
7c287f6ae5
@ -366,6 +366,7 @@ export default {
|
|||||||
taskId() {
|
taskId() {
|
||||||
this.userList = null;
|
this.userList = null;
|
||||||
this.taskList = null;
|
this.taskList = null;
|
||||||
|
this.$emit('input', this.getInputCache())
|
||||||
},
|
},
|
||||||
|
|
||||||
showEmoji(val) {
|
showEmoji(val) {
|
||||||
@ -634,13 +635,13 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getInputCache() {
|
getInputCache() {
|
||||||
const key = this.dialogId;
|
const key = this.dialogId || this.taskId;
|
||||||
const item = this.dialogInputCache.find(item => item.key == key);
|
const item = this.dialogInputCache.find(item => item.key == key);
|
||||||
return item ? item.cache : '';
|
return item ? item.cache : '';
|
||||||
},
|
},
|
||||||
|
|
||||||
setInputCache(cache) {
|
setInputCache(cache) {
|
||||||
const key = this.dialogId;
|
const key = this.dialogId || this.taskId;
|
||||||
const index = this.dialogInputCache.findIndex(item => item.key == key);
|
const index = this.dialogInputCache.findIndex(item => item.key == key);
|
||||||
const data = {key, cache}
|
const data = {key, cache}
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user