docs: support ie9
parent
25b9e67f04
commit
bf5a893551
|
@ -63,7 +63,8 @@ export default {
|
||||||
if (this.$route.path.indexOf('/docs/vue/') !== -1) {
|
if (this.$route.path.indexOf('/docs/vue/') !== -1) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const menus = []
|
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
|
const id = dom.id
|
||||||
if (id) {
|
if (id) {
|
||||||
const title = dom.textContent.split('#')[0].trim()
|
const title = dom.textContent.split('#')[0].trim()
|
||||||
|
|
|
@ -32,6 +32,7 @@ Vue.component('demo-container', demoContainer)
|
||||||
|
|
||||||
const router = new VueRouter({
|
const router = new VueRouter({
|
||||||
mode: 'history',
|
mode: 'history',
|
||||||
|
fallback: false,
|
||||||
routes,
|
routes,
|
||||||
})
|
})
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|
Loading…
Reference in New Issue