You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
578 B
30 lines
578 B
4 years ago
|
<template>
|
||
|
<div>
|
||
|
<Header :name="name" />
|
||
|
<div style="padding: 20px;margin: 0 auto;width: 960px;">
|
||
|
<router-view v-mountedCallback="mountedCallback" />
|
||
|
</div>
|
||
|
<Footer />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import Header from '../components/header';
|
||
|
import Footer from '../components/footer';
|
||
|
import NProgress from 'nprogress';
|
||
|
export default {
|
||
|
components: {
|
||
|
Header,
|
||
|
Footer,
|
||
|
},
|
||
|
props: ['name'],
|
||
|
beforeCreate() {},
|
||
|
methods: {
|
||
|
mountedCallback() {
|
||
|
NProgress.done();
|
||
|
document.documentElement.scrollTop = 0;
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
</script>
|