This commit is contained in:
parent
b679498542
commit
ce5731c095
|
|
@ -14,9 +14,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
// 构造 iframe 地址,使用相对路径自动携带Cookie
|
||||
const hash = process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? '#/' : ''
|
||||
this.iframeSrc =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/iws/mall-view/#/home?redirect=equipList'
|
||||
? `/iws/mall-view/${hash}home?redirect=equipList`
|
||||
: 'http://localhost:8102/iws/mall-view/home?redirect=equipList'
|
||||
|
||||
// 等 iframe 加载完成再传 token
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
console.log('🚀 ~ mounted:', window.location)
|
||||
const hash = process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? '#/' : ''
|
||||
this.iframeSrc =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/iws/mall-view/#/home?redirect=rent-manage'
|
||||
? `/iws/mall-view/${hash}home?redirect=rent-manage`
|
||||
: 'http://localhost:8102/iws/mall-view/home?redirect=rent-manage'
|
||||
console.log('🚀 ~ this.iframeSrc:', this.iframeSrc)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
console.log('🚀 ~ mounted:', window.location)
|
||||
const hash = process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? '#/' : ''
|
||||
this.iframeSrc =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/iws/mall-view/#/home?redirect=parity'
|
||||
? `/iws/mall-view/${hash}home?redirect=parity`
|
||||
: 'http://localhost:8102/iws/mall-view/home?redirect=parity'
|
||||
console.log('🚀 ~ this.iframeSrc:', this.iframeSrc)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,9 +14,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
console.log('🚀 ~ mounted:', window.location)
|
||||
const hash = process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? '#/' : ''
|
||||
this.iframeSrc =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/iws/mall-view/#/home?redirect=sourcingNeed'
|
||||
? `/iws/mall-view/${hash}home?redirect=sourcingNeed`
|
||||
: 'http://localhost:8102/iws/mall-view/home?redirect=sourcingNeed'
|
||||
console.log('🚀 ~ this.iframeSrc:', this.iframeSrc)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue