fix: 非本地用户不能绑定三方认证

This commit is contained in:
xinwen
2021-10-29 10:40:40 +08:00
committed by Jiangjie.Bai
parent 803090dff9
commit 7ee3d307df

View File

@@ -73,8 +73,7 @@ export default {
title: this.$t('users.setWeCom'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_wecom_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_WECOM,
callbacks: {
@@ -88,8 +87,7 @@ export default {
title: this.$t('users.setDingTalk'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_dingtalk_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_DINGTALK,
callbacks: {
@@ -103,8 +101,7 @@ export default {
title: this.$t('users.setFeiShu'),
attrs: {
type: 'primary',
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind'),
disabled: this.$store.state.users.profile.source !== 'local'
label: this.$store.state.users.profile.is_feishu_bound ? this.$t('common.unbind') : this.$t('common.bind')
},
has: this.$store.getters.publicSettings.AUTH_FEISHU,
callbacks: {