Commit 44491272 authored by 任国军's avatar 任国军

fix categoryList bug

parent d35e2588
Pipeline #21918 passed with stage
in 20 seconds
......@@ -119,7 +119,7 @@ class OptionService extends Service {
const type = Number(input.type) || 1;
const filter = { where: { type, is_deleted: 0, status: 1 }, order: [[ 'sort', 'asc' ], [ 'id', 'asc' ]] };
if (parentId > 0) {
if (type === 2) {
filter.where.parent_id = parentId;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment