mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +00:00
fix: (location) => ({location})
This commit is contained in:
parent
3b4f6cd43c
commit
0e75b8e4a0
@ -243,7 +243,7 @@ export function useRouter(routerConfig) {
|
|||||||
matchLocation(history.location);
|
matchLocation(history.location);
|
||||||
}
|
}
|
||||||
|
|
||||||
unlisten = history.listen((location) => {
|
unlisten = history.listen(({ location }) => {
|
||||||
matchLocation(location);
|
matchLocation(location);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -288,7 +288,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
|||||||
initialEntries: [initialEntry],
|
initialEntries: [initialEntry],
|
||||||
});
|
});
|
||||||
this.history = history;
|
this.history = history;
|
||||||
history.listen((location) => {
|
history.listen(({ location }) => {
|
||||||
host.project.open(location.pathname.substr(1));
|
host.project.open(location.pathname.substr(1));
|
||||||
});
|
});
|
||||||
host.componentsConsumer.consume(async (componentsAsset) => {
|
host.componentsConsumer.consume(async (componentsAsset) => {
|
||||||
|
|||||||
@ -54,5 +54,5 @@
|
|||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "http://registry.npm.alibaba-inc.com"
|
"registry": "http://registry.npm.alibaba-inc.com"
|
||||||
},
|
},
|
||||||
"homepage": "https:/unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.18/build/index.html"
|
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-react-renderer@0.8.18/build/index.html"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user