fix(route/zaobao): Replace selector (#15880)

* fix(route/zaobao): Replace selector.

* Revert "fix(route/zaobao): Replace selector."

This reverts commit 2ec2b6c3ef801d12117abbfa425b62bd1dbf1919.

* .

* .
This commit is contained in:
Andvari
2024-06-12 22:24:54 +08:00
committed by GitHub
parent 0aa141aa75
commit ffff5456e3
+1 -1
View File
@@ -38,7 +38,7 @@ const parseList = async (
}> => {
const response = await got_ins.get(baseUrl + sectionUrl);
const $ = load(response.data);
let data = $('.article-list').find('.article-type');
let data = /realtime/.test(sectionUrl) ? $('.on-listing-pages') : $('.article-list').find('.article-type');
if (data.length === 0) {
// for HK version
data = $('.clearfix').find('.list-block');