feat: jwt performance

This commit is contained in:
DarkSky
2022-07-26 17:11:01 +08:00
parent 3ec95e4377
commit c39814047a
9 changed files with 204 additions and 173 deletions

View File

@@ -23,7 +23,7 @@ export function getPageId() {
return path ? path[2] : undefined;
}
export async function sleep(delay?: number) {
export async function sleep(delay = 100) {
return new Promise(res => {
window.setTimeout(() => {
res(true);