1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
epp/mini-program/model/activities.js

8 lines
231 B
JavaScript

import { getActivity } from './activity';
export function getActivityList(baseID = 0, length = 10) {
return new Array(length).fill(0).map((_, idx) => getActivity(idx + baseID));
}
export const activityList = getActivityList();