(key: string)
| 103 | }; |
| 104 | |
| 105 | export const startKeepAlive = (key: string) => { |
| 106 | activeSessionKey = key; |
| 107 | // 页面打开时不清除当前uuid,每30秒更新一次记录 |
| 108 | updateSessionTimestamp(); |
| 109 | clearInterval(keepAliveTimerId); |
| 110 | keepAliveTimerId = setInterval(updateSessionTimestamp, 30_000); |
| 111 | }; |
no test coverage detected