diff --git a/src/components/data/UserInfo/BaseInfo/index.vue b/src/components/data/UserInfo/BaseInfo/index.vue index 564e7d1..35a2178 100644 --- a/src/components/data/UserInfo/BaseInfo/index.vue +++ b/src/components/data/UserInfo/BaseInfo/index.vue @@ -92,8 +92,8 @@ size="38" />
- {{ $t('pages.userBaseInfo.labels.gold') }}:{{ candy || 0 }} -   + {{ $t('pages.userBaseInfo.labels.gold') }}:{{ candy || 0 }} +
@@ -743,6 +743,11 @@ export default { }, computed: { ...mapGetters(['buttonPermissions']), + hasGoldBalancePermission() { + return this.buttonPermissions.includes( + 'user:table:column:gold-coin-balance' + ) + }, associatedDeviceNotEmpty() { return ( this.deviceInfo && @@ -815,11 +820,13 @@ export default { that.registerLoading = false }) - getUserCandyBalance(userId) - .then(res => { - this.candy = res.body - }) - .catch(er => {}) + if (that.hasGoldBalancePermission) { + getUserCandyBalance(userId) + .then(res => { + this.candy = res.body + }) + .catch(er => {}) + } getUserIdentity(userId) .then(res => { diff --git a/src/views/user/user-table-role/index.vue b/src/views/user/user-table-role/index.vue index 64cb6c9..b8b12ec 100644 --- a/src/views/user/user-table-role/index.vue +++ b/src/views/user/user-table-role/index.vue @@ -188,7 +188,12 @@ /> - + - +