From 49b4d341fd84e4410aeedbd206a9768cbda29b29 Mon Sep 17 00:00:00 2001 From: doly mood Date: Thu, 22 Dec 2016 23:03:40 +0800 Subject: [PATCH] location.replace and assign order Should called location.replace when replace is true --- src/history/html5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history/html5.js b/src/history/html5.js index e1fe31135..3d28bf581 100644 --- a/src/history/html5.js +++ b/src/history/html5.js @@ -129,7 +129,7 @@ function pushState (url: string, replace?: boolean) { } saveScrollPosition(_key) } catch (e) { - window.location[replace ? 'assign' : 'replace'](url) + window.location[replace ? 'replace' : 'assign'](url) } }