style: mp/WxReply objCache => tabCache

(cherry picked from commit 08eb72e568)
This commit is contained in:
dhb52 2023-04-22 01:23:52 +08:00 committed by shizhong
parent 0deb965db3
commit 88167a437e

View File

@ -84,7 +84,7 @@ const reply = computed<Reply>({
set: (val) => emit('update:modelValue', val)
})
// Reply
const objCache = new Map<ReplyType, Reply>()
const tabCache = new Map<ReplyType, Reply>()
// reftabwatchreply
const currentTab = ref<ReplyType>(props.modelValue.type || ReplyType.Text)
@ -97,10 +97,10 @@ watch(
return
}
objCache.set(oldTab, unref(reply))
tabCache.set(oldTab, unref(reply))
// tabReplyReply
const temp = objCache.get(newTab)
const temp = tabCache.get(newTab)
if (temp) {
reply.value = temp
} else {