From 80eb072c1b17ffafdb4e1907e73b77cc83010a4d Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Tue, 16 May 2023 18:02:01 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/ProfileInfo.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/profile/ProfileInfo.vue b/src/views/profile/ProfileInfo.vue index f67e71370..9942550f0 100644 --- a/src/views/profile/ProfileInfo.vue +++ b/src/views/profile/ProfileInfo.vue @@ -63,7 +63,7 @@ export default { title: this.$t('users.setWeCom'), attrs: { type: 'primary', - label: this.getBindLabel('wecom'), + label: this.getLabel('wecom'), disabled: this.isDisabled('wecom'), showTip: this.isDisabled('wecom'), tip: this.$t('users.UnbindHelpText') @@ -80,7 +80,7 @@ export default { title: this.$t('users.setDingTalk'), attrs: { type: 'primary', - label: this.getBindLabel('dingtalk'), + label: this.getLabel('dingtalk'), disabled: this.isDisabled('dingtalk'), showTip: this.isDisabled('dingtalk'), tip: this.$t('users.UnbindHelpText') @@ -97,7 +97,7 @@ export default { title: this.$t('users.setFeiShu'), attrs: { type: 'primary', - label: this.getBindLabel('feishu'), + label: this.getLabel('feishu'), disabled: this.isDisabled('feishu'), showTip: this.isDisabled('feishu'), tip: this.$t('users.UnbindHelpText') @@ -312,7 +312,7 @@ export default { isBind(sourceName) { return !!this.$store.state.users.profile[`${sourceName}_id`] }, - getBindLabel(sourceName) { + getLabel(sourceName) { return this.isBind(sourceName) ? this.$t('common.unbind') : this.$t('common.bind') }, isUserFromSource(sourceName) {