Skip to content

Commit a8a5f85

Browse files
committed
docs: support ie9
1 parent 4a43960 commit a8a5f85

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: site/components/layout.vue

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export default {
6363
if (this.$route.path.indexOf('/docs/vue/') !== -1) {
6464
this.$nextTick(() => {
6565
const menus = []
66-
this.$refs.doc.querySelectorAll(['h2', 'h3']).forEach(dom => {
66+
const doms = [...this.$refs.doc.querySelectorAll(['h2', 'h3'])]
67+
doms.forEach(dom => {
6768
const id = dom.id
6869
if (id) {
6970
const title = dom.textContent.split('#')[0].trim()

Diff for: site/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Vue.component('demo-container', demoContainer)
3232

3333
const router = new VueRouter({
3434
mode: 'history',
35+
fallback: false,
3536
routes,
3637
})
3738
new Vue({

0 commit comments

Comments
 (0)