完全vue渲染列表的功能

去掉不必要的js函数定义
修改返回json的方式
This commit is contained in:
2021-03-15 06:12:12 +08:00
parent d795809fb3
commit 975be7cc91
135 changed files with 402 additions and 792 deletions
@@ -50,10 +50,10 @@ class IndexController extends DefaultController
if ($key) {
$badge = ModuleService::badges($key);
if ($badge) {
return response()->json($badge());
return $badge();
}
}
return response()->json(['total' => 0, 'data' => []]);
return ['total' => 0, 'data' => []];
}
// 获取全部待办数量
@@ -64,6 +64,6 @@ class IndexController extends DefaultController
foreach($badges as $key => $badge) {
$json[$key] = $badge();
}
return response()->json($json);
return $json;
}
}