|
@@ -14,15 +14,21 @@
|
|
|
<router-view :key="key" v-if="needKeep" />
|
|
|
</keep-alive>
|
|
|
<router-view v-if="!needKeep" :key="key" /> -->
|
|
|
+
|
|
|
</div>
|
|
|
</transition>
|
|
|
+ <instructions />
|
|
|
</section>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import notKeepAliveList from "@/router/notKeepAliveList";
|
|
|
+import instructions from './instructions'
|
|
|
export default {
|
|
|
name: "AppMain",
|
|
|
+ components:{
|
|
|
+ instructions
|
|
|
+ },
|
|
|
computed: {
|
|
|
key() {
|
|
|
return this.$route.path;
|
|
@@ -34,9 +40,18 @@ export default {
|
|
|
return this.$store.state.tagsView.cachedViews;
|
|
|
},
|
|
|
keep() {
|
|
|
- return this.$route.meta.noCache*1; // 0是缓存 1是不缓存
|
|
|
+ return this.$route.meta.noCache * 1; // 0是缓存 1是不缓存
|
|
|
},
|
|
|
+
|
|
|
},
|
|
|
+ methods:{
|
|
|
+ onResize(e){
|
|
|
+ console.log(e)
|
|
|
+ },
|
|
|
+ showInstructions(){
|
|
|
+ this.isShow = !this.isShow
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -65,4 +80,5 @@ export default {
|
|
|
// padding-right: 15px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</style>
|