Skip to content

Commit

Permalink
fix: #11514
Browse files Browse the repository at this point in the history
  • Loading branch information
fengsx committed Aug 17, 2023
1 parent daec0c4 commit e739a2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/plugins/libs/qiankun/slave/slaveRuntimePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export function modifyClientRenderOpts(memo: any) {
const clientRenderOpts = contextOptsStack.shift();
const { basename, historyType } = memo;

// use ?? instead of ||, incase clientRenderOpts.basename is ''
// only break when microApp has a config.base and mount path is /*
const newBasename = clientRenderOpts?.basename ?? basename;
const newBasename = clientRenderOpts?.basename || basename;
const newHistoryType = clientRenderOpts?.historyType || historyType;

if (newHistoryType !== historyType || newBasename !== basename) {
Expand Down

0 comments on commit e739a2e

Please sign in to comment.