From b9063d7ba8f0fb451566ef8ad457bf9cc6200717 Mon Sep 17 00:00:00 2001 From: chenjg <17688741996@163.com> Date: Mon, 29 Jul 2024 14:20:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/error.html | 55 +++++++++++++++++++++++++++++++++++++++ public/resource/config.js | 2 ++ 2 files changed, 57 insertions(+) create mode 100644 public/error.html diff --git a/public/error.html b/public/error.html new file mode 100644 index 000000000..3ee0fe4f2 --- /dev/null +++ b/public/error.html @@ -0,0 +1,55 @@ + + + + + + + + + 访问系统发生错误 + + + + +
+
404
+
+ 未知错误 +
+
+ + diff --git a/public/resource/config.js b/public/resource/config.js index 838710d9a..6f6c89807 100755 --- a/public/resource/config.js +++ b/public/resource/config.js @@ -124,6 +124,8 @@ function getDirectUrl() { HTTP_RESPONSE_STATUS_CODE = '522'; const directUrl = responseText.DirectUrl.startsWith('http') ? responseText.DirectUrl : 'http://' + responseText.DirectUrl; window.open(directUrl, '_self'); + } else if (responseText.Status === 'FAILED' && responseText.Message) { + window.location.href = '/error.html?errorMessage=' + encodeURIComponent(responseText.Message); } } }; -- Gitee