mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: login state check
This commit is contained in:
1 parent
03d096dc79
commit
3bcfec0366
4 files changed
+7
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user