jinjianback1.1/src/views/layout/components/AppMain.vue

19 lines
370 B
Vue
Raw Normal View History

2017-06-26 13:38:24 +08:00
<template>
2017-08-30 17:42:06 +08:00
<section class="app-main">
<transition name="fade" mode="out-in">
<router-view :key="key"></router-view>
</transition>
</section>
2017-06-26 13:38:24 +08:00
</template>
<script>
2017-08-30 17:42:06 +08:00
export default {
name: 'AppMain',
computed: {
key() {
return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
2017-06-26 13:38:24 +08:00
}
2017-08-30 17:42:06 +08:00
}
}
2017-06-26 13:38:24 +08:00
</script>