fix github edit link
This commit is contained in:
@@ -107,15 +107,10 @@ export default {
|
|||||||
return this.$route.matched[0].path
|
return this.$route.matched[0].path
|
||||||
},
|
},
|
||||||
editLink () {
|
editLink () {
|
||||||
let path = this.currentPath
|
const currentPath = this.currentPath
|
||||||
|
const filePath = currentPath === '' ? '/introduction' : currentPath
|
||||||
|
|
||||||
if (path === '') {
|
return `https://github.com/ueberdosis/tiptap-next/blob/main/docs/src/docPages${filePath}.md`
|
||||||
path = 'docs/src/pages/Index.vue'
|
|
||||||
} else {
|
|
||||||
path = `docs/src/docPages${path}.md`
|
|
||||||
}
|
|
||||||
|
|
||||||
return `https://github.com/ueberdosis/tiptap-next/blob/main/${path}`
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user