judge: fix

This commit is contained in:
undefined committed 2021-08-23 03:30:39 +08:00
1 parent 3bcfec0366
commit 72053d7a37
2 files changed
+4 -2

No files matched your search

+3 -1
View File
@@ -328,7 +328,9 @@ export default class Hydro {
async ensureLogin() {
try {
await this.axios.get('judge/files');
const res = await this.axios.get('judge/files');
// Redirected to /login
if (res.data.url) await this.login();
} catch (e) {
await this.login();
}