mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-04 17:16:07 +08:00
修复 health 接口报错
This commit is contained in:
parent
47c194c1f4
commit
394e96bbf8
|
@ -41,7 +41,7 @@ const config: Config = {
|
||||||
prefix: '/api',
|
prefix: '/api',
|
||||||
},
|
},
|
||||||
jwt: {
|
jwt: {
|
||||||
secret: process.env.JWT_SECRET || createRandomString(16, 32),
|
secret: process.env.JWT_SECRET || 'whyour-secret',
|
||||||
expiresIn: process.env.JWT_EXPIRES_IN,
|
expiresIn: process.env.JWT_EXPIRES_IN,
|
||||||
},
|
},
|
||||||
cors: {
|
cors: {
|
||||||
|
|
|
@ -113,6 +113,8 @@ export default function () {
|
||||||
const responseStatus = error.response.status;
|
const responseStatus = error.response.status;
|
||||||
if (responseStatus !== 401) {
|
if (responseStatus !== 401) {
|
||||||
history.push('/error');
|
history.push('/error');
|
||||||
|
} else {
|
||||||
|
window.location.reload();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => setInitLoading(false));
|
.finally(() => setInitLoading(false));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user