mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
添加系统错误页面
This commit is contained in:
+5
-1
@@ -119,7 +119,10 @@ export default {
|
||||
tip: 'Bark的信息IP/设备码,例如:https://api.day.app/XXXXXXXX',
|
||||
required: true,
|
||||
},
|
||||
{ label: 'barkIcon', tip: 'BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)' },
|
||||
{
|
||||
label: 'barkIcon',
|
||||
tip: 'BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)',
|
||||
},
|
||||
{ label: 'barkSound', tip: 'BARK推送铃声,铃声列表去APP查看复制填写' },
|
||||
{ label: 'barkGroup', tip: 'BARK推送消息的分组, 默认为qinglong' },
|
||||
],
|
||||
@@ -208,6 +211,7 @@ export default {
|
||||
'/diff': '对比工具',
|
||||
'/log': '任务日志',
|
||||
'/setting': '系统设置',
|
||||
'/error': '错误日志',
|
||||
},
|
||||
dependenceTypes: ['nodejs', 'python3', 'linux'],
|
||||
};
|
||||
|
||||
+2
-2
@@ -14,8 +14,8 @@ const errorHandler = function (error: any) {
|
||||
? error.data.message || error.data
|
||||
: error.response.statusText;
|
||||
const responseStatus = error.response.status;
|
||||
if (responseStatus === 502) {
|
||||
message.error('服务异常,请手动执行ql check检查服务状态');
|
||||
if ([502, 504].includes(responseStatus)) {
|
||||
history.push('/error');
|
||||
} else if (responseStatus === 401) {
|
||||
if (history.location.pathname !== '/login') {
|
||||
message.error('登录已过期,请重新登录');
|
||||
|
||||
Reference in New Issue
Block a user