支持非根目录部署

This commit is contained in:
whyour
2023-05-19 01:10:33 +08:00
parent 1377fe31aa
commit 490bdc15f6
13 changed files with 88 additions and 55 deletions
+3 -3
View File
@@ -17,9 +17,9 @@ const Error = () => {
needLoading && setLoading(true);
request
.get(`${config.apiPrefix}public/health`)
.then(({ error, status }) => {
if (status === 1) {
return reloadUser();
.then(({ error, data }) => {
if (data?.status === 1) {
return;
}
if (retryTimes.current > 3) {
setData(error?.details);