From 8a624a564bdcf79136136714d97e92e385799e6c Mon Sep 17 00:00:00 2001 From: Nicolas Widart Date: Sun, 17 Sep 2017 00:35:25 +0200 Subject: [PATCH] Create a simple shortcut helper --- Modules/Core/Assets/js/mixins/ShortcutHelper.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Modules/Core/Assets/js/mixins/ShortcutHelper.js diff --git a/Modules/Core/Assets/js/mixins/ShortcutHelper.js b/Modules/Core/Assets/js/mixins/ShortcutHelper.js new file mode 100644 index 000000000..e691cf49a --- /dev/null +++ b/Modules/Core/Assets/js/mixins/ShortcutHelper.js @@ -0,0 +1,7 @@ +export default { + methods: { + pushRoute(route) { + this.$router.push(route); + } + } +}