Browse Source

docs: support ie9

pull/93/merge
tangjinzhou 6 years ago
parent
commit
a8a5f854c3
  1. 3
      site/components/layout.vue
  2. 1
      site/index.js

3
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()

1
site/index.js

@ -32,6 +32,7 @@ Vue.component('demo-container', demoContainer)
const router = new VueRouter({
mode: 'history',
fallback: false,
routes,
})
new Vue({

Loading…
Cancel
Save