2020-02-27 18:09:23 +08:00
|
|
|
<template>
|
2020-11-14 20:38:30 +08:00
|
|
|
<n-service-layout
|
2020-02-27 18:09:23 +08:00
|
|
|
ref="layout"
|
|
|
|
:padding-body="false"
|
2020-11-14 20:38:30 +08:00
|
|
|
:items="Site.items"
|
|
|
|
:sider-props="siderProps"
|
|
|
|
:content-props="contentProps"
|
2020-02-27 18:09:23 +08:00
|
|
|
>
|
|
|
|
<router-view />
|
2020-11-20 15:14:02 +08:00
|
|
|
<landing-footer style="padding: 32px 204px 16px 36px; text-align: left; font-size: 14px;" />
|
2020-11-14 20:38:30 +08:00
|
|
|
</n-service-layout>
|
2020-02-27 18:09:23 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-10-26 15:03:02 +08:00
|
|
|
import LandingFooter from './documentation/landing/Footer.vue'
|
2020-03-05 22:31:20 +08:00
|
|
|
|
2020-02-27 18:09:23 +08:00
|
|
|
export default {
|
2020-03-05 22:31:20 +08:00
|
|
|
components: {
|
|
|
|
LandingFooter
|
|
|
|
},
|
2020-02-27 18:09:23 +08:00
|
|
|
provide () {
|
|
|
|
return {
|
|
|
|
NDocRoot: this
|
|
|
|
}
|
|
|
|
},
|
2020-11-14 20:38:30 +08:00
|
|
|
inject: ['Site'],
|
2020-02-27 18:09:23 +08:00
|
|
|
beforeRouteUpdate (to, from, next) {
|
|
|
|
this.memorizedPath = from ? from.path : null
|
|
|
|
next()
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
2020-05-18 20:03:44 +08:00
|
|
|
memorizedPath: null,
|
2020-11-14 20:38:30 +08:00
|
|
|
siderProps: {
|
|
|
|
style: {
|
|
|
|
height: '100%'
|
|
|
|
}
|
2020-05-30 16:13:09 +08:00
|
|
|
},
|
2020-11-14 20:38:30 +08:00
|
|
|
contentProps: {
|
2020-11-20 15:14:02 +08:00
|
|
|
// themedStyle: {
|
|
|
|
// light: {
|
|
|
|
// backgroundColor: '#FFF'
|
|
|
|
// }
|
|
|
|
// }
|
2020-05-18 20:03:44 +08:00
|
|
|
}
|
2020-02-27 18:09:23 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
resetScrollPosition () {
|
2020-03-01 16:34:17 +08:00
|
|
|
this.$refs.layout.scrollTo(0, 0)
|
2020-02-27 18:09:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|