Commit 02592dec by Lays-lzq

Merge branch 'feature/login' into test

parents d06ecaad ab5cba35
......@@ -148,12 +148,12 @@ export default {
}
if (this.token) {
postMessage.replaceTo(
`https://${process.env.CUSTOMER_DOMAIN}/job/submit?id=${submitId}&uin=${this.$route.query.uin}&tempId=${this.$route.query.id}`
`${process.env.NODE_ENV === 'production' ? origin : process.env.CUSTOMER_DOMAIN}/job/submit?id=${submitId}&uin=${this.$route.query.uin}&tempId=${this.$route.query.id}`
)
} else {
this.$toast('请先登录')
postMessage.locationTo(
`https://${process.env.CUSTOMER_DOMAIN}/my/login?uin=${this.$route.query.uin}`
`${process.env.NODE_ENV === 'production' ? origin : process.env.CUSTOMER_DOMAIN}/my/login?uin=${this.$route.query.uin}`
)
}
},
......@@ -171,12 +171,12 @@ export default {
}
if (this.token) {
postMessage.replaceTo(
`https://${process.env.CUSTOMER_DOMAIN}/job/detail?id=${submitId}&uin=${this.$route.query.uin}&tempId=${this.$route.query.id}`
`${process.env.NODE_ENV === 'production' ? origin : process.env.CUSTOMER_DOMAIN}/job/detail?id=${submitId}&uin=${this.$route.query.uin}&tempId=${this.$route.query.id}`
)
} else {
this.$toast('请先登录')
postMessage.locationTo(
`https://${process.env.CUSTOMER_DOMAIN}/my/login?uin=${this.$route.query.uin}`
`${process.env.NODE_ENV === 'production' ? origin : process.env.CUSTOMER_DOMAIN}/my/login?uin=${this.$route.query.uin}`
)
}
},
......
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 sign in to comment