|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div id="app">
|
|
|
- <header-view></header-view>
|
|
|
+ <header-view v-if="!isInFrame"></header-view>
|
|
|
<nuxt/>
|
|
|
<footer-view></footer-view>
|
|
|
<right-bar></right-bar>
|
|
|
@@ -11,6 +11,11 @@
|
|
|
|
|
|
export default {
|
|
|
name: 'app',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ isInFrame: false
|
|
|
+ }
|
|
|
+ },
|
|
|
components: {
|
|
|
HeaderView: Header,
|
|
|
FooterView: Footer,
|
|
|
@@ -21,6 +26,9 @@
|
|
|
title: this.title
|
|
|
}
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+ this.isInFrame = self !== top
|
|
|
+ },
|
|
|
computed: {
|
|
|
title () {
|
|
|
let path = this.$route.path
|