diff --git a/frontend/src/views/panel/GrantAuth/role/index.vue b/frontend/src/views/panel/GrantAuth/role/index.vue index 1af7f475d3..3167339bda 100644 --- a/frontend/src/views/panel/GrantAuth/role/index.vue +++ b/frontend/src/views/panel/GrantAuth/role/index.vue @@ -71,9 +71,12 @@ export default { const arr = obj[this.fieldName] if (arr.length === 0) { this.initColumnLabel() - return + } else { + this.columnLabel = this.filter_options[arr[0]].text } - this.columnLabel = this.filter_options[arr[0]].text + this.$nextTick(() => { + this.setCheckNodes() + }) }, save() { const rows = this.$refs.table.store.states.selection diff --git a/frontend/src/views/panel/GrantAuth/user/index.vue b/frontend/src/views/panel/GrantAuth/user/index.vue index a4296b02e0..7ee56ffa87 100644 --- a/frontend/src/views/panel/GrantAuth/user/index.vue +++ b/frontend/src/views/panel/GrantAuth/user/index.vue @@ -78,9 +78,12 @@ export default { const arr = obj[this.fieldName] if (arr.length === 0) { this.initColumnLabel() - return + } else { + this.columnLabel = this.filter_options[arr[0]].text } - this.columnLabel = this.filter_options[arr[0]].text + this.$nextTick(() => { + this.setCheckNodes() + }) }, save() {