From 64abcc04a84ed7a21d38732daf033043cff15d02 Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Tue, 9 May 2017 14:43:47 +0200 Subject: [PATCH] Fix middleware on client-side --- examples/middleware/middleware/visits.js | 1 - examples/middleware/pages/_slug.vue | 1 - lib/app/client.js | 46 ++++++++++++------------ 3 files changed, 22 insertions(+), 26 deletions(-) diff --git a/examples/middleware/middleware/visits.js b/examples/middleware/middleware/visits.js index 719079c5bd..7804fad335 100644 --- a/examples/middleware/middleware/visits.js +++ b/examples/middleware/middleware/visits.js @@ -1,4 +1,3 @@ export default function ({ store, route, redirect }) { store.commit('ADD_VISIT', route.path) - if (route.fullPath === '/') return redirect('/foo') } diff --git a/examples/middleware/pages/_slug.vue b/examples/middleware/pages/_slug.vue index 57c3d2a228..4fbd6b57c5 100644 --- a/examples/middleware/pages/_slug.vue +++ b/examples/middleware/pages/_slug.vue @@ -12,7 +12,6 @@