mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
fix: 修复组织角色添加用户报错问题
This commit is contained in:
parent
097817e02c
commit
b5950b795b
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<TabPage :active-menu.sync="config.activeMenu" :submenu="config.submenu">
|
<TabPage :active-menu.sync="config.activeMenu" :submenu="config.submenu" @tab-click="handleTabClick">
|
||||||
<div slot="title">
|
<div slot="title">
|
||||||
{{ Title }}
|
{{ Title }}
|
||||||
</div>
|
</div>
|
||||||
@ -41,6 +41,21 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.switchGlobalOrg(this.config.activeMenu === 'OrgRoleList')
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTabClick(tab) {
|
||||||
|
this.switchGlobalOrg(tab.name === 'OrgRoleList')
|
||||||
|
},
|
||||||
|
switchGlobalOrg(status) {
|
||||||
|
if (status) {
|
||||||
|
this.$route.meta.disableOrgsChange = false
|
||||||
|
this.$store.dispatch('users/leaveGlobalOrg')
|
||||||
|
} else {
|
||||||
|
this.$route.meta.disableOrgsChange = true
|
||||||
|
this.$store.dispatch('users/enterGlobalOrg')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user