|
@@ -87,6 +87,7 @@ export default {
|
|
await settingUserSetBiz({ bizId: bizId })
|
|
await settingUserSetBiz({ bizId: bizId })
|
|
},
|
|
},
|
|
enter(biz, type) {
|
|
enter(biz, type) {
|
|
|
|
+ const { fromPath } = this.$route.query
|
|
if (biz.isSecret === 1 && type === 'all') {
|
|
if (biz.isSecret === 1 && type === 'all') {
|
|
this.$message({
|
|
this.$message({
|
|
message: '没有访问权限,请先联系系统管理员或业务线现有成员添加权限',
|
|
message: '没有访问权限,请先联系系统管理员或业务线现有成员添加权限',
|
|
@@ -99,6 +100,14 @@ export default {
|
|
this.$store.dispatch('global/setBizId', biz.code)
|
|
this.$store.dispatch('global/setBizId', biz.code)
|
|
this.$store.dispatch('global/setBizName', biz.name)
|
|
this.$store.dispatch('global/setBizName', biz.name)
|
|
this.settingUserSetBiz(biz.code)
|
|
this.settingUserSetBiz(biz.code)
|
|
|
|
+ // 如果是其他业务过来的,优先回到其他业务的主页面中
|
|
|
|
+ if (fromPath) {
|
|
|
|
+ const url = `${location.origin}/${fromPath}/#/env?bizId=${biz.code}`
|
|
|
|
+ // const url = `http://localhost:7101/#/env?bizId=${biz.code}`
|
|
|
|
+ // 如果是来自自动化的,
|
|
|
|
+ location.href = url
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!fromRoute || !fromRoute.name || fromRoute.name === 'notAccess' || fromRoute.name === 'notFound') {
|
|
if (!fromRoute || !fromRoute.name || fromRoute.name === 'notAccess' || fromRoute.name === 'notFound') {
|
|
this.$router.push({ name: '项目', query: { bizId: EncryptId(biz.code) }})
|
|
this.$router.push({ name: '项目', query: { bizId: EncryptId(biz.code) }})
|
|
return
|
|
return
|