|
@@ -17,11 +17,6 @@
|
|
|
}
|
|
|
export default {
|
|
|
name: 'shop',
|
|
|
- data () {
|
|
|
- return {
|
|
|
- isInFrame: false
|
|
|
- }
|
|
|
- },
|
|
|
components: {
|
|
|
HeaderView: Header,
|
|
|
FooterView: Footer,
|
|
@@ -29,9 +24,6 @@
|
|
|
StoreHeader,
|
|
|
StoreTitle
|
|
|
},
|
|
|
- mounted () {
|
|
|
- this.isInFrame = self !== top
|
|
|
- },
|
|
|
head () {
|
|
|
return {
|
|
|
title: this.title,
|
|
@@ -42,6 +34,12 @@
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
+ isInFrame () {
|
|
|
+ if (this.$route.path === '/' || this.$route.path === '') {
|
|
|
+ this.$store.dispatch('userType/setUserType', {type: this.$route.query.type || 'mall'})
|
|
|
+ }
|
|
|
+ return this.$store.state.userType.type.type.data === 'erp'
|
|
|
+ },
|
|
|
title () {
|
|
|
let path = this.$route.path
|
|
|
if (path.startsWith('/store/') && getCount(path, '/') === 2) {
|