From 257043e42d4131e8e49ea057a705bd71c95d2e08 Mon Sep 17 00:00:00 2001 From: Tdxdxoz Date: Wed, 30 Dec 2020 16:06:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=93=E6=9C=89=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E5=B7=B2=E8=A2=AB=E9=80=89=E4=B8=AD=E6=97=B6=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E5=88=B0=E6=AD=A3=E7=A1=AE=E7=9A=84=E9=A6=96=E5=AD=97=E6=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/list.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/list.html b/templates/list.html index a525362..0b2d266 100644 --- a/templates/list.html +++ b/templates/list.html @@ -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,