Browse Source

fix: 当有课程已被选中时定位到正确的首字母

master
欧醚 3 years ago
parent
commit
257043e42d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      templates/list.html

+ 5
- 1
templates/list.html View File

@ -553,7 +553,11 @@
else
$(`.all-courses .cate-group[data-key="${target}"]`).show();
});
$('.all-courses .cate-btns .btn').eq(1).click();
let sk = $(".all-courses .cate.selected").parent().data('key');
if(sk)
$(`.all-courses .cate-btns .btn[data-target="${sk}"]`).click();
else
$('.all-courses .cate-btns .btn').eq(1).click();
$('[data-toggle="popover"]').popover({
html: true,

Loading…
Cancel
Save