From 1d1c9d811015e4e51f1a484ac1c34bb90ef953f5 Mon Sep 17 00:00:00 2001 From: LaySent Date: Wed, 11 Oct 2017 16:15:19 +0800 Subject: [PATCH 1/3] fix scroll issue in IE --- src/core/event/scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/event/scroll.js b/src/core/event/scroll.js index bba7aecb3..0f77efdc4 100644 --- a/src/core/event/scroll.js +++ b/src/core/event/scroll.js @@ -12,8 +12,8 @@ function scrollTo (el) { if (scroller) scroller.stop() enableScrollEvent = false scroller = new Tweezer({ - start: window.scrollY, - end: el.getBoundingClientRect().top + window.scrollY, + start: window.pageYOffset, + end: el.getBoundingClientRect().top + window.pageYOffset, duration: 500 }) .on('tick', v => window.scrollTo(0, v)) From 57afb0ae46036f353673eb15be2eeb610c19fc21 Mon Sep 17 00:00:00 2001 From: LaySent Date: Wed, 11 Oct 2017 16:56:04 +0800 Subject: [PATCH 2/3] add meta tag for IE browser --- dev.html | 1 + docs/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/dev.html b/dev.html index f41f01f38..a19a0d5a1 100644 --- a/dev.html +++ b/dev.html @@ -3,6 +3,7 @@ docsify + diff --git a/docs/index.html b/docs/index.html index 28503bad2..3f5400ed9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,6 +4,7 @@ docsify + From 61f0e826614bd42e25df5a611e333b97bc5133e4 Mon Sep 17 00:00:00 2001 From: LaySent Date: Thu, 12 Oct 2017 18:16:49 +0800 Subject: [PATCH 3/3] fix link render issue after page refreshing --- src/core/router/history/hash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/router/history/hash.js b/src/core/router/history/hash.js index ce8335a4a..014a11b15 100644 --- a/src/core/router/history/hash.js +++ b/src/core/router/history/hash.js @@ -80,7 +80,9 @@ export class HashHistory extends History { path = route.path + stringifyQuery(route.query) path = path.replace(/\.md(\?)|\.md$/, '$1') - if (local) path = currentRoute + path + if (local) { + path = currentRoute.substr(0, currentRoute.indexOf('?')) + path + } return cleanPath('#/' + path) }