judge: login state check

This commit is contained in:
undefined committed 2021-08-23 03:17:09 +08:00
1 parent 03d096dc79
commit 3bcfec0366
4 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ export default class Hydro {
async ensureLogin() {
try {
await this.axios.get('judge?check=true');
await this.axios.get('judge/files');
} catch (e) {
await this.login();
}