feat: 对话缓存机制

This commit is contained in:
2026-04-02 14:50:20 +08:00
parent 59a9046333
commit 04611c60d8
6 changed files with 67 additions and 211 deletions

View File

@@ -155,13 +155,13 @@ function addPending(config: any) {
* @param {*} config
*/
function removePending(config: any) {
const pendingKey = getPendingKey(config)
if (pendingMap.has(pendingKey)) {
const cancelToken = pendingMap.get(pendingKey)
cancelToken(pendingKey)
pendingMap.delete(pendingKey)
return true
}
// const pendingKey = getPendingKey(config)
// if (pendingMap.has(pendingKey)) {
// const cancelToken = pendingMap.get(pendingKey)
// cancelToken(pendingKey)
// pendingMap.delete(pendingKey)
// return true
// }
}
// ----------------------------------loading的函数-------------------------------
const LoadingInstance: { _count: number } = {