diff --git a/docs/src/index.js b/docs/src/index.js index 4997a8d15..43f769edf 100644 --- a/docs/src/index.js +++ b/docs/src/index.js @@ -29,10 +29,6 @@ const router = new VueRouter({ }); router.beforeEach((route, redirect, next) => { - if (route.path !== '/') { - window.scrollTo(0, 0); - } - const pathname = '/zanui/vue/examples'; if (isMobile()) { window.location.replace(pathname); diff --git a/package.json b/package.json index 58e58f68f..1027ec832 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,6 @@ "webpack": "^3.5.5", "webpack-dev-server": "^2.7.1", "webpack-merge": "^4.1.0", - "zan-doc": "0.1.13" + "zan-doc": "0.2.0" } } diff --git a/yarn.lock b/yarn.lock index f26a86049..9ea1f3de1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5163,6 +5163,10 @@ npmlog@^4.0.2: gauge "~2.7.3" set-blocking "~2.0.0" +nprogress@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/nprogress/-/nprogress-0.2.0.tgz#cb8f34c53213d895723fcbab907e9422adbcafb1" + nth-check@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.1.tgz#9929acdf628fc2c41098deab82ac580cf149aae4" @@ -7922,12 +7926,13 @@ yeast@0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" -zan-doc@0.1.13: - version "0.1.13" - resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.13.tgz#df532b538ba613a4fe39e436ec553de3e7c25918" +zan-doc@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.2.0.tgz#40b31c4f1cc5ae539853a06b30f1cb479e2edca3" dependencies: cheerio "0.22.0" decamelize "^1.2.0" markdown-it "^8.3.1" markdown-it-container "^2.0.0" node-watch "^0.5.5" + nprogress "^0.2.0"