From a8a5f854c3b6a78df526caf2fb391e5c9d0848ac Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 28 Jul 2018 13:43:23 +0800 Subject: [PATCH] docs: support ie9 --- site/components/layout.vue | 3 ++- site/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/site/components/layout.vue b/site/components/layout.vue index 8b555da69..95acf9f50 100644 --- a/site/components/layout.vue +++ b/site/components/layout.vue @@ -63,7 +63,8 @@ export default { if (this.$route.path.indexOf('/docs/vue/') !== -1) { this.$nextTick(() => { const menus = [] - this.$refs.doc.querySelectorAll(['h2', 'h3']).forEach(dom => { + const doms = [...this.$refs.doc.querySelectorAll(['h2', 'h3'])] + doms.forEach(dom => { const id = dom.id if (id) { const title = dom.textContent.split('#')[0].trim() diff --git a/site/index.js b/site/index.js index 31c0c0d7a..2312efc80 100644 --- a/site/index.js +++ b/site/index.js @@ -32,6 +32,7 @@ Vue.component('demo-container', demoContainer) const router = new VueRouter({ mode: 'history', + fallback: false, routes, }) new Vue({