1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-06-12 01:59:24 +08:00
lei.jiang d0ad66b2f2 顶部导航栏现在是固定的
顶部导航栏增加毛玻璃效果
修复修改顶部导航栏导致的某些地方错位的问题
2017-09-17 02:30:27 +08:00

19 lines
403 B
Vue

<template>
<section class="app-main" style="min-height: 100%;margin-top:50px;">
<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>