diff --git a/src/views/toolbar/ToolbarDemo.vue b/src/views/toolbar/ToolbarDemo.vue index 301464d00..6f7ea4871 100755 --- a/src/views/toolbar/ToolbarDemo.vue +++ b/src/views/toolbar/ToolbarDemo.vue @@ -52,7 +52,7 @@ export default { { label: 'Upload', icon: 'pi pi-upload', command: () => { - window.location.hash = "/fileupload" + this.$router.push('fileupload'); } } ] diff --git a/src/views/toolbar/ToolbarDoc.vue b/src/views/toolbar/ToolbarDoc.vue index 289ca50ab..2c4df83a3 100755 --- a/src/views/toolbar/ToolbarDoc.vue +++ b/src/views/toolbar/ToolbarDoc.vue @@ -103,7 +103,7 @@ export default { { label: 'Upload', icon: 'pi pi-upload', command: () => { - window.location.hash = "/fileupload" + this.$router.push('fileupload'); } } ]