feat: 对话缓存机制
This commit is contained in:
@@ -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 } = {
|
||||
|
||||
Reference in New Issue
Block a user