init: add fuse-react v8.3.5 skeleton
This commit is contained in:
12
src/@mock-api/index.js
Normal file
12
src/@mock-api/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import './api/auth-api';
|
||||
import './api/notifications-api';
|
||||
import history from '@history';
|
||||
import mock from './mock';
|
||||
|
||||
mock.onAny().passThrough();
|
||||
|
||||
if (module?.hot?.status() === 'apply') {
|
||||
const { pathname } = history.location;
|
||||
history.push('/loading');
|
||||
history.push({ pathname });
|
||||
}
|
||||
Reference in New Issue
Block a user