perf: 修改 org

This commit is contained in:
ibuler
2022-04-20 19:54:00 +08:00
committed by 老广
parent 2b4d827789
commit 332cd2c073

View File

@@ -1,6 +1,6 @@
<template>
<el-select
:value="currentOrg.id"
:value="currentOrgId"
class="org-select organization"
filterable
:placeholder="$t('common.Select')"
@@ -90,6 +90,15 @@ export default {
this.orgActionsGroup,
this.orgChoicesGroup
]
},
currentOrgId() {
const usingOrgIds = this.usingOrgs.map(o => o.id)
let currentOrgId = this.currentOrg.id
const find = usingOrgIds.indexOf(currentOrgId) > -1
if (!find) {
currentOrgId = null
}
return currentOrgId
}
},
created() {