just came into contact with the dva framework. I judged in subscriptions that when the current route is entered, it should not be called only once.
`subscriptions: {
getPageData({ dispatch, history }) {
return history.listen(({ pathname, query }) => {
if (pathname === "/invite-friends") {
dispatch({ type: "getActivityDetail" });
}
});
}
}, `