Skip to content

Commit

Permalink
fix(cli): missing hash and query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Umer Farooq committed Oct 23, 2020
1 parent c07d60a commit e7fc6a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 4 additions & 2 deletions cli/embedded-app/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ Vue.use(Router);
export default new Router({
routes: [
{
path: '/*',
path: '*',
component: IframeEmbed,
props: true
props: router => ({
frameRoute: router.fullPath
})
}
]
});
8 changes: 1 addition & 7 deletions cli/embedded-app/src/views/IframeEmbed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,14 @@
<script>
export default {
name: 'iframeEmbed',
props: ['pathMatch'],
props: ['frameRoute'],
data() {
return {
frameUrl: '',
showMenu: true,
clientConfig: {}
};
},
computed: {
frameRoute() {
// Ensure route is valid when the matched path is '';
return '/' + this.pathMatch;
}
},
methods: {
displayToast(event) {
const customJson = JSON.stringify(event.detail.custom, null, 2);
Expand Down

0 comments on commit e7fc6a1

Please sign in to comment.