提交 9882eb5c 编写于 作者: C chenshuai2144

🐛 fix: remove unuse code

上级 41501ad0
import { Subscription, Reducer, Effect } from 'umi';
import { Reducer, Effect } from 'umi';
import { NoticeIconData } from '@/components/NoticeIcon';
import { queryNotices } from '@/services/user';
......@@ -28,7 +28,6 @@ export interface GlobalModelType {
saveNotices: Reducer<GlobalModelState>;
saveClearedNotices: Reducer<GlobalModelState>;
};
subscriptions: { setup: Subscription };
}
const GlobalModel: GlobalModelType = {
......@@ -122,17 +121,6 @@ const GlobalModel: GlobalModelType = {
};
},
},
subscriptions: {
setup({ history }): void {
// Subscribe history(url) change, trigger `load` action if pathname is `/`
history.listen(({ pathname, search }): void => {
if (typeof window.ga !== 'undefined') {
window.ga('send', 'pageview', pathname + search);
}
});
},
},
};
export default GlobalModel;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册