import { history } from 'umi' ; import { doChildrenDestroy } from './utils/bridge' ; import { RequestConfig } from 'umi' ; history . listen ( ( location , action ) => { if ( location . pathname !== '/design' ) { doChildrenDestroy ( ) ; } } ) ;