-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.vue
More file actions
60 lines (53 loc) · 1.06 KB
/
Copy pathindex.vue
File metadata and controls
60 lines (53 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<template>
<div id="app">
<DocLayout />
</div>
</template>
<script>
import DocLayout from "@/components/DocLayout"
export default {
components: { DocLayout },
mounted() {
const hash = document.location.hash.substr(1)
if(hash.length > 0)
this.$smoothScroll(hash)
document.getElementById("page-loading").remove()
},
head: {
title: function() {
return {
inner: `${this.$api.info.title} - ${this.$api.info.version}`,
separator: '-',
complement: this.$i18n("DOCUMENTATION"),
}
},
meta: function() {
return [
{ name: 'description', content: this.$api.info.description.substr(0, 160), vmid: 'index' },
]
},
}
}
</script>
<style lang="less">
@import "@/assets/theme.less";
body {
.theme-font-body();
background: @color-body-background;
color: @color-body-text;
margin: 0;
padding: 0;
}
pre, code {
.theme-font-code();
padding: 0;
margin: 0;
}
p {
.theme-font-body();
}
a {
color: @color-body-link;
&:hover { color: @color-body-link-hover; }
}
</style>