From 5cad8a0fad151ad071dfde4ca04f1f1f4f6c4da7 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 21 Sep 2020 17:19:27 +0300 Subject: [PATCH] Use programmatic navigation --- src/views/toolbar/ToolbarDemo.vue | 2 +- src/views/toolbar/ToolbarDoc.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); } } ]