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

v-show 覆盖style

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