Merge pull request #1686 from FoundTheWOUT/fix-simple-home

改进getBlackboards
This commit is contained in:
Grant Howard 2021-03-29 10:27:28 +08:00 committed by GitHub
commit 5c9cb37c74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ export interface Blackboard {
export const getBlackboards = async (): Promise<Blackboard[]> => {
if (dq('.international-home')) {
const initData = await SpinQuery.condition(() => unsafeWindow['__INITIAL_STATE__'], it => it !== undefined)
return dqa('.home-slide .item')
return dqa('.first-screen .home-slide .item')
.slice(0, 5)
.map((it, index) => {
const locID = it.querySelector('a')!.getAttribute('data-loc-id')!