Commit 75a9ff72 authored by 李苏's avatar 李苏 💬

页签缓存,组件bug

parent b6039ecd
<template> <template>
<section class="app-main"> <section class="app-main">
<transition name="fade-transform" mode="out-in"> <transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews"> <!-- <keep-alive :include="cachedViews">
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> </keep-alive> -->
<!-- <router-view :key="key" /> --> <keep-alive >
<router-view :key="key" />
</keep-alive>
</transition> </transition>
</section> </section>
</template> </template>
......
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
computed: { computed: {
title(){ title(){
return $store.state.permission.appName return this.$store.state.permission.appName
}, },
variables() { variables() {
return variables; return variables;
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
}, },
data() { data() {
return { return {
title: '陕钢安全管理系统', // title: '陕钢安全管理系统',
logo: logoImg logo: logoImg
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment