From 4ec99ef6f6fbca7064d75eef6cbec835cf743a32 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Thu, 11 Jan 2018 16:59:55 +0800 Subject: [PATCH] fix: nested redirect in spa --- lib/app/client.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/app/client.js b/lib/app/client.js index ae0faf080e..a8dd544b09 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -586,6 +586,12 @@ async function mountApp(__app) { } // Push the path and then mount app - router.push(path, () => mount(), (err) => console.error(err)) + router.push(path, () => mount(), (err) => { + if (typeof err === 'undefined') { + mount() + } else { + console.error(err) + } + }) }) }