Commit 4a0035f8 authored by youjie's avatar youjie

优化 CarUrl 通知父级方法

parent 88304570
......@@ -139,20 +139,22 @@
}
},
mounted() {
if(localStorage.typeSystem) this.typeSystem = localStorage.typeSystem
let href = this.domainManager().CarUrl
if(this.getLocalStorage() == null){
if(localStorage.typeSystem) {
this.typeSystem = localStorage.typeSystem
let href = this.domainManager().CarUrl
if(this.getLocalStorage() == null){
window.parent.postMessage({
event_id: 'out',
data: {
loginState: '退出登录',
}}, `${href}`)
}
// 通知车行已进入erp
window.parent.postMessage({
event_id: 'out',
data: {
loginState: '退出登录',
}}, `${href}`)
event_id: 'app',
data: {}}, `${href}`)
}
// 通知车行已进入erp
window.parent.postMessage({
event_id: 'app',
data: {}}, `${href}`)
if (
!this.getLocalStorage() &&
document.URL.indexOf("SupplierLogin") == -1 &&
......
......@@ -2592,7 +2592,7 @@ else if (Type==2) {
this.GetCarList(path)
} else {
if(this.GetDetail.OtherType == 80){
if(this.typeSystem>0){
if(this.typeSystem==1){
let href = this.domainManager().CarUrl
window.parent.postMessage({
event_id: 'CarDealerOrder',
......
......@@ -486,12 +486,15 @@
mounted() {
this.initData()
this.getGroup()
let href = this.domainManager().CarUrl
if(localStorage.typeSystem) {
let href = this.domainManager().CarUrl
window.parent.postMessage({
event_id: 'out',
data: {
loginState: '退出登录',
}}, `${href}`)
}
},
created() {
......
......@@ -4262,12 +4262,14 @@
localStorage.removeItem("userInfo");
localStorage.removeItem("previousPathInfo");
location.href = '/'
let href = this.domainManager().CarUrl
window.parent.postMessage({
event_id: 'out',
data: {
loginState: '退出登录',
}}, `${href}`)
if(localStorage.typeSystem) {
let href = this.domainManager().CarUrl
window.parent.postMessage({
event_id: 'out',
data: {
loginState: '退出登录',
}}, `${href}`)
}
},
togglebox(e) {
if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment