event.js 404 Bytes
Newer Older
1
import { store } from 'microser-data';
邓晓峰's avatar
邓晓峰 committed
2
import { appService } from '../api';
3 4
store.on('event:route', (url) => {
    history.pushState(null, `/civbase/${url}`, `/civbase/${url}`);
邓晓峰's avatar
邓晓峰 committed
5 6 7 8
});
window.share && window.share.event && window.share.event.on('event:logs', params => {
    delete params.site;
    appService.pvLogs(params);
9 10 11 12 13 14
});

// store.on('event:logout', () => {
//     window.globalConfig = {};
// })