Showing
1 changed file
with
5 additions
and
1 deletions
@@ -448,7 +448,11 @@ exports.handleSaleOptsData = (params, total, extra) => { | @@ -448,7 +448,11 @@ exports.handleSaleOptsData = (params, total, extra) => { | ||
448 | } else { | 448 | } else { |
449 | opt.name = '最新'; | 449 | opt.name = '最新'; |
450 | opt.hasSortOrient = true; | 450 | opt.hasSortOrient = true; |
451 | - opt.active = true; | 451 | + if (_.isEmpty(params.order) || params.order === 's_t_desc') { |
452 | + opt.active = true; | ||
453 | + } else { | ||
454 | + opt.active = false; | ||
455 | + } | ||
452 | opt.desc = true; | 456 | opt.desc = true; |
453 | } | 457 | } |
454 | break; | 458 | break; |
-
Please register or login to post a comment