fix router
This commit is contained in:
parent
06705bab5c
commit
b9b5641b26
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@_because/hype",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"module": "src/index.tsx",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export class Hype<
|
|||
super(props)
|
||||
|
||||
this.props = props ?? {}
|
||||
if (!this.router)
|
||||
if (!this.props.router)
|
||||
this.registerMiddleware()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user