From cf02e8226aa83ea1cd319d681e432d4d8661dc12 Mon Sep 17 00:00:00 2001 From: Nianyong Date: Wed, 20 Mar 2019 20:09:14 +0800 Subject: [PATCH] fix(vue-app): duplicated router.base when using context.redirect(object) (#5290) --- packages/vue-app/template/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-app/template/utils.js b/packages/vue-app/template/utils.js index e76e09cf27..f9f1d91958 100644 --- a/packages/vue-app/template/utils.js +++ b/packages/vue-app/template/utils.js @@ -164,7 +164,7 @@ export async function setContext(app, context) { status = 302 } if (pathType === 'object') { - path = app.router.resolve(path).href + path = app.router.resolve(path).route.fullPath } // "/absolute/route", "./relative/route" or "../relative/route" if (/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path)) {