|
|
|
@ -55,6 +55,17 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import marked from 'marked'
|
|
|
|
import marked from 'marked'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
// auto screenTop hash
|
|
|
|
|
|
|
|
if (this.$route.hash) {
|
|
|
|
|
|
|
|
let el = document.querySelector(this.$route.hash)
|
|
|
|
|
|
|
|
if (el) {
|
|
|
|
|
|
|
|
window.scrollTo(0, el.offsetTop)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
document() {
|
|
|
|
document() {
|
|
|
|
return require('../docs/' + this.$i18n.locale)
|
|
|
|
return require('../docs/' + this.$i18n.locale)
|
|
|
|
|