mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-09 05:29:32 +00:00
chore: update deps
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
import { useTabs } from '/@/hooks/web/useTabs';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'TabContent',
|
||||
name: 'TabRedo',
|
||||
components: { RedoOutlined, Tooltip },
|
||||
|
||||
setup() {
|
||||
|
12
src/utils/cache/memory.ts
vendored
12
src/utils/cache/memory.ts
vendored
@@ -57,10 +57,14 @@ export class Memory<T = any, V = any> {
|
||||
if (!expires) {
|
||||
return value;
|
||||
}
|
||||
item.time = new Date().getTime() + this.alive;
|
||||
item.timeoutId = setTimeout(() => {
|
||||
// this.remove(key);
|
||||
}, expires);
|
||||
const now = new Date().getTime();
|
||||
item.time = now + this.alive;
|
||||
item.timeoutId = setTimeout(
|
||||
() => {
|
||||
this.remove(key);
|
||||
},
|
||||
expires > now ? expires - now : expires
|
||||
);
|
||||
|
||||
return value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user