|
|
@@ -34,16 +34,21 @@
|
|
|
return this.$store.state.option.isMobile
|
|
|
},
|
|
|
isInFrame () {
|
|
|
- let cookies = this.$store.state.option.cookies
|
|
|
- let cookieArr = cookies.split(';')
|
|
|
- let cookieObj = {}
|
|
|
- for (let i = 0; i < cookieArr.length; i++) {
|
|
|
- let tmpArr = cookieArr[i].split('=') || []
|
|
|
- if (tmpArr.length === 2) {
|
|
|
- cookieObj[tmpArr[0].trim()] = tmpArr[1].trim()
|
|
|
+ if (this.$route.query.type === 'erp') {
|
|
|
+ this.$store.commit('option/ADD_COOKIES', 'type=erp;')
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ let cookies = this.$store.state.option.cookies
|
|
|
+ let cookieArr = cookies.split(';')
|
|
|
+ let cookieObj = {}
|
|
|
+ for (let i = 0; i < cookieArr.length; i++) {
|
|
|
+ let tmpArr = cookieArr[i].split('=') || []
|
|
|
+ if (tmpArr.length === 2) {
|
|
|
+ cookieObj[tmpArr[0].trim()] = tmpArr[1].trim()
|
|
|
+ }
|
|
|
}
|
|
|
+ return cookieObj.type === 'erp'
|
|
|
}
|
|
|
- return cookieObj.type === 'erp' || this.$route.query.type === 'erp'
|
|
|
},
|
|
|
title () {
|
|
|
let path = this.$route.path
|