错误页面优化,ajax情况下返回json数据。
This commit is contained in:
@@ -32,7 +32,7 @@ if (isBlank(message)){
|
||||
|
||||
// 如果是异步请求或是手机端,则直接返回信息
|
||||
if (@ServletUtils.isAjaxRequest(request)) {
|
||||
print(message);
|
||||
print(@ServletUtils.renderResult(@Global.FALSE, message));
|
||||
}
|
||||
|
||||
// 输出异常信息页面
|
||||
|
||||
@@ -18,7 +18,7 @@ if (isBlank(message)){
|
||||
|
||||
// 如果是异步请求或是手机端,则直接返回信息
|
||||
if (@ServletUtils.isAjaxRequest(request)) {
|
||||
print(message);
|
||||
print(@ServletUtils.renderResult(@Global.FALSE, message));
|
||||
}
|
||||
|
||||
// 输出异常信息页面
|
||||
|
||||
@@ -9,7 +9,7 @@ if (isBlank(message)){
|
||||
|
||||
// 如果是异步请求或是手机端,则直接返回信息
|
||||
if (@ServletUtils.isAjaxRequest(request)) {
|
||||
print(message);
|
||||
print(@ServletUtils.renderResult(@Global.FALSE, message));
|
||||
}
|
||||
|
||||
// 输出异常信息页面
|
||||
|
||||
@@ -26,7 +26,7 @@ if (isBlank(message)){
|
||||
|
||||
// 如果是异步请求或是手机端,则直接返回信息
|
||||
if (@ServletUtils.isAjaxRequest(request)) {
|
||||
print(message);
|
||||
print(@ServletUtils.renderResult(@Global.FALSE, message));
|
||||
}
|
||||
|
||||
// 输出异常信息页面
|
||||
|
||||
@@ -9,8 +9,9 @@ var globalFields = @Global.getConst('Global.Fields');
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/><meta http-equiv="Expires" content="0"/>
|
||||
<meta content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
||||
<meta content="${productName} - Powered By JeeSite" name="description"/>
|
||||
<meta content="${productName} - Powered By JeeSite V4.0" name="description"/>
|
||||
<meta content="ThinkGem, http://jeesite.com" name="author"/>
|
||||
<meta content="Powered By JeeSite V4.0" name="keywords"/>
|
||||
<title>${pageTitle}</title>
|
||||
<script src="${ctxPath}/global.min.js?ctx=${ctx}"></script>
|
||||
<script src="${ctxStatic}/jquery/jquery-1.12.4.min.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user