Commit 445935fb authored by 李苏's avatar 李苏 💬

v-show 覆盖style

parent 3bf0fefb
<template> <template>
<section class="app-main"> <section class="app-main">
<keep-alive > <keep-alive >
<template v-show="isCache" > <router-view v-show="isCache" />
<router-view />
</template>
</keep-alive> </keep-alive>
<router-view v-if="!isCache" /> <router-view v-if="!isCache" />
...@@ -20,6 +17,9 @@ export default { ...@@ -20,6 +17,9 @@ export default {
}, },
}, },
watch:{ watch:{
isCache(val){
console.log(val)
},
cachedViews(val){ cachedViews(val){
this.JSONcachedViews=JSON.stringify(val) this.JSONcachedViews=JSON.stringify(val)
}, },
...@@ -34,9 +34,6 @@ export default { ...@@ -34,9 +34,6 @@ export default {
} }
}, },
$route(val){ $route(val){
// console.log(this.isCache)
// debugger
this.isCache=true
this.key=val.name this.key=val.name
if(this.addBz){ if(this.addBz){
if(this.oldCachedViews.includes(val.name)){ if(this.oldCachedViews.includes(val.name)){
......
<template> <template>
<div class="full">
<div style="display: flex;"> <div style="display: flex;">
<Xq v-if="showDialog" :app='this' /> <Xq v-if="showDialog" :app='this' />
<!-- <div class="min_full" style="width: 200px;border-right: 0px;"> <!-- <div class="min_full" style="width: 200px;border-right: 0px;">
...@@ -69,6 +70,7 @@ ...@@ -69,6 +70,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { import {
......
<template> <template>
<div style="display: flex;">
<div class="flex">
<Tbwl :app='this' v-if="showDialog" /> <Tbwl :app='this' v-if="showDialog" />
<div class="min_full" style="width: 200px;border-right: 0px;"> <div class="min_full" style="width: 200px;border-right: 0px;">
<LazyTree treeTitle='物料分类' @selected='selectedTree' url='jcsj/wlfl/queryroot' /> <LazyTree treeTitle='物料分类' @selected='selectedTree' url='jcsj/wlfl/queryroot' />
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { import {
......
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