App.vue
439 Bytes
<template>
<div id="app">
<keep-alive>
<router-view
v-wechat-title="$route.meta.title"
v-if='$route.meta.keepAlive'
/>
</keep-alive>
<router-view
v-wechat-title="$route.meta.title"
v-if='!$route.meta.keepAlive'
/>
</div>
</template>
<script>
export default {
data () {
return {
}
},
mounted () {
}
}
</script>
<style scoped>
#app {
font-size: 14px;
}
</style>