mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-15 18:58:11 +00:00
fix: history.listen({location}) => history.listen(location)
This commit is contained in:
parent
d85ca25fca
commit
25a6390e55
@ -243,7 +243,7 @@ export function useRouter(routerConfig) {
|
||||
matchLocation(history.location);
|
||||
}
|
||||
|
||||
unlisten = history.listen(({ location }) => {
|
||||
unlisten = history.listen((location) => {
|
||||
matchLocation(location);
|
||||
});
|
||||
|
||||
|
||||
@ -288,7 +288,7 @@ export class SimulatorRendererContainer implements BuiltinSimulatorRenderer {
|
||||
initialEntries: [initialEntry],
|
||||
});
|
||||
this.history = history;
|
||||
history.listen(({ location }) => {
|
||||
history.listen((location) => {
|
||||
host.project.open(location.pathname.substr(1));
|
||||
});
|
||||
host.componentsConsumer.consume(async (componentsAsset) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user