Skip to content

Commit

Permalink
fix(omi-router): css parameter is not mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Jan 8, 2024
1 parent f1e9494 commit 8a91f2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/omi-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omi-router",
"version": "4.1.4",
"version": "4.1.5",
"description": "Router for Omi",
"main": "dist/index.es.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/omi-router/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type CSSItem = CSSStyleSheet | Module | string
export class Router {
el: RouterView

constructor(options: { routes: Route[]; renderTo: string, css: CSSItem[] }) {
constructor(options: { routes: Route[]; renderTo: string, css?: CSSItem[] }) {
this.el = render((
<router-view
onInstall={(evt: CustomEvent) => {
Expand Down

0 comments on commit 8a91f2c

Please sign in to comment.