Support upgrade alpha core

This commit is contained in:
MystiPanda
2023-12-10 15:57:10 +08:00
parent a66e8dfc9f
commit 0c3f03680c
6 changed files with 35 additions and 10 deletions

View File

@@ -63,11 +63,7 @@ const SettingClash = ({ onError }: Props) => {
await updateGeoData();
Notice.success("Start update geodata");
} catch (err: any) {
if (err.response.status === 400) {
Notice.success("Updating geodata...");
} else {
Notice.error(err.message || err.toString());
}
Notice.error(err?.response.data.message || err.toString());
}
});