Skip to content

Commit d250bf2

Browse files
committed
fix: Make NS router settings optional
1 parent ae739d0 commit d250bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vue-router.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import routerMixin from "./router-mixin";
2121
*/
2222
export const createRouter = (
2323
vueRouterOptions: NSVueRouterOptions,
24-
routerOptions: RouterServiceOptions
24+
routerOptions: RouterServiceOptions = {}
2525
) => {
2626
const vm = routerOptions.vm || (Vue as any).prototype;
2727

0 commit comments

Comments
 (0)