refactor: 修改产品属性列表接口
This commit is contained in:
@@ -40,7 +40,7 @@ class ProductAttr
|
|||||||
'list_rows' => $params['size'],
|
'list_rows' => $params['size'],
|
||||||
'page' => $params['page'],
|
'page' => $params['page'],
|
||||||
]);
|
]);
|
||||||
} else if ('list' == request()->param('scene')) {
|
} else if ('all' == request()->param('scene')) {
|
||||||
$attrs = $attrs->select();
|
$attrs = $attrs->select();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ Route::group('v1', function () {
|
|||||||
Route::get('export', 'Product/export');
|
Route::get('export', 'Product/export');
|
||||||
|
|
||||||
// 产品属性特征
|
// 产品属性特征
|
||||||
Route::get('attrs', 'ProductAttr/index')->append(['scene' => 'list']);
|
Route::get('attrs', 'ProductAttr/index')->append(['scene' => 'all']);
|
||||||
|
|
||||||
// 产品属性管理
|
// 产品属性管理
|
||||||
Route::group('attr', function () {
|
Route::group('attr', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user