vjudge: luogu: fix login

This commit is contained in:
undefined committed 2023-01-28 11:21:24 +08:00
1 parent 1f585968a4
commit bc43b2fd4e
3 files changed
+21 -3

No files matched your search

+5
View File
@@ -47,4 +47,9 @@ export class BasicFetcher {
if (this.fetchOptions.post?.headers) req = req.set(this.fetchOptions.post.headers);
return this.account.proxy ? req.proxy(this.account.proxy) : req;
}
setCookie(cookie: string | string[]) {
if (typeof cookie === 'string') this.cookie = [cookie];
else this.cookie = cookie;
}
}