1
0
mirror of https://github.com/PanJiaChen/electron-vue-admin.git synced 2025-04-05 05:32:44 +08:00
2017-07-14 16:08:15 +08:00

19 lines
420 B
Vue

<template>
<section class="app-main">
<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>