refactor: refine layout directory structure

This commit is contained in:
Pan
2017-10-23 10:53:39 +08:00
parent 87a44ae7f5
commit ccddfe87bc
8 changed files with 5 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
<template>
<section class="app-main" style="min-height: 100%">
<transition name="fade" mode="out-in">
<router-view :key="key"></router-view>
</transition>
</section>
</template>
<script>
export default {
name: 'AppMain',
computed: {
key() {
return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
}
}
}
</script>