modified 修复后端的空方法响应

This commit is contained in:
zhaoxiang 2016-11-21 20:00:52 +08:00
parent 6eb7f963bc
commit 177b2c91f1
2 changed files with 8 additions and 9 deletions

View File

@ -11,16 +11,15 @@ namespace app\admin\controller;
class PublicShow extends Base {
public function show_404(){
$this->assign('title', '页面丢失了!');
return $this->fetch('public/404');
if( !$this->request->isAjax() ){
$this->assign('title', '页面丢失了!');
return $this->fetch('public/404');
}else{
$this->error('页面不存在!');
}
}
public function show_500(){
return $this->fetch('public/500');
}
public function showBreadcrumb(){
}
}

View File

@ -50,7 +50,7 @@
</tbody>
</table>
<table class="table table-hover">
<caption><h4>数据库依赖检</h4></caption>
<caption><h4>数据库依赖检</h4></caption>
<thead>
<tr>
<th>名称</th>
@ -68,7 +68,7 @@
</table>
{if condition="isset($checkCache)"}
<table class="table table-hover">
<caption><h4>缓存依赖检</h4></caption>
<caption><h4>缓存依赖检</h4></caption>
<thead>
<tr>
<th>名称</th>