|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div id="main">
|
|
|
- <header-view></header-view>
|
|
|
+ <header-view v-if="!isInFrame"></header-view>
|
|
|
<main-header></main-header>
|
|
|
<main-nav></main-nav>
|
|
|
<nuxt/>
|
|
|
@@ -20,6 +20,11 @@
|
|
|
MainHeader,
|
|
|
MainNav
|
|
|
},
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ isInFrame: false
|
|
|
+ }
|
|
|
+ },
|
|
|
head () {
|
|
|
return {
|
|
|
title: this.title,
|
|
|
@@ -29,6 +34,9 @@
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+ this.isInFrame = window.location.href !== parent.location.href
|
|
|
+ },
|
|
|
computed: {
|
|
|
title () {
|
|
|
let path = this.$route.path
|