Skip to content

Commit 4cc304d

Browse files
committed
Fix call to dynamically add routes to Vue router.
- The first parameter in `addRoute` is for a parent route or name of a parent route -- it should not have been passed when adding non-child routes.
1 parent b37f7a5 commit 4cc304d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-vue-wallet ChangeLog
22

3+
## 29.3.2 - 2024-10-dd
4+
5+
### Fixed
6+
- Fix call to dynamically add routes to Vue router.
7+
38
## 29.3.1 - 2024-10-11
49

510
### Fixed

lib/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Copyright (c) 2022-2023 Digital Bazaar, Inc. All rights reserved.
2+
* Copyright (c) 2022-2024 Digital Bazaar, Inc. All rights reserved.
33
*/
44
import * as brQuasar from '@bedrock/quasar';
55
import {config} from '@bedrock/web';
@@ -177,7 +177,7 @@ export async function configureRouter({
177177
}
178178
// add routes
179179
for(const route of routes) {
180-
router.addRoute(route.name, route);
180+
router.addRoute(route);
181181
}
182182

183183
// handle behavior triggered by route changes

0 commit comments

Comments
 (0)