From 6a557cf7b9118e54fd39a06e2531eb19b4485896 Mon Sep 17 00:00:00 2001 From: inclusive-coding-bot Date: Thu, 31 Mar 2022 01:11:11 -0400 Subject: [PATCH] Switch to gender neutral terms --- src/permission.js | 2 +- src/views/permission/role.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index ff5eaad2..7519c2e4 100644 --- a/src/permission.js +++ b/src/permission.js @@ -26,7 +26,7 @@ router.beforeEach(async(to, from, next) => { next({ path: '/' }) NProgress.done() // hack: https://github.com/PanJiaChen/vue-element-admin/pull/2939 } else { - // determine whether the user has obtained his permission roles through getInfo + // determine whether the user has obtained their permission roles through getInfo const hasRoles = store.getters.roles && store.getters.roles.length > 0 if (hasRoles) { next() diff --git a/src/views/permission/role.vue b/src/views/permission/role.vue index cd7ecd4c..614b299b 100644 --- a/src/views/permission/role.vue +++ b/src/views/permission/role.vue @@ -164,7 +164,7 @@ export default { this.$nextTick(() => { const routes = this.generateRoutes(this.role.routes) this.$refs.tree.setCheckedNodes(this.generateArr(routes)) - // set checked state of a node not affects its father and child nodes + // set checked state of a node not affects its parent and child nodes this.checkStrictly = false }) },