packages/mip/src/components/mip-shell/switchPage.js
function skipTransitionAndCreate (shell, options) {
  let {sourcePageId, targetPageId, onComplete} = options

  hideAllIFrames()
  fixRootPageScroll(shell, {sourcePageId, targetPageId})
  onComplete && onComplete()

  let iframe = getIFrame(targetPageId)
  css(iframe, 'z-index', activeZIndex++)

  shell.afterSwitchPage(options)
}
function skipTransitionAndCreate (shell, options) {
  let {sourcePageId, targetPageId, onComplete} = options

  hideAllIFrames()
  fixRootPageScroll(shell, {sourcePageId, targetPageId})
  onComplete && onComplete()

  let iframe = getIFrame(targetPageId)
  css(iframe, 'z-index', activeZIndex++)

  shell.afterSwitchPage(options)
}
function skipTransitionAndCreate ( shell , options ) { let { sourcePageId , targetPageId , onComplete } = options hideAllIFrames ( ) fixRootPageScroll ( shell , { sourcePageId , targetPageId } ) onComplete && onComplete ( ) let iframe = getIFrame ( targetPageId ) css ( iframe , 'z-index' , activeZIndex ++ ) shell . afterSwitchPage ( options ) }
Skip transition and create new iframe

@param {Object} shell shell instance
@param {Object} options
@param {string} options.targetPageId targetPageId
@param {Object} options.targetPageMeta pageMeta of target page
@param {string} options.sourcePageId sourcePageId
@param {Object} options.sourcePageMeta pageMeta of source page
@param {boolean} options.newPage whether a new iframe should be created (false)
@param {boolean} options.isForward whether transition direction is forward (true)
@param {Function} options.onComplete complete callback
Skip transition and create new iframe