完全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
@@ -202,7 +202,7 @@ class OptionController extends DefaultController
if (Request::method() == 'POST') {
$rows = Option::where('parent_id', 0)->orderBy('sort', 'asc')->orderBy('id', 'asc')->get();
$rows->prepend(['name' => '全部类别', 'id' => 0, 'parent_id' => 0]);
return response()->json(['data' => $rows]);
return ['data' => $rows];
}
}