diff --git a/frontend/src/components/business/ms-user-group-comp/authTable.vue b/frontend/src/components/business/ms-user-group-comp/authTable.vue index cc77ff8879..8afda6c971 100644 --- a/frontend/src/components/business/ms-user-group-comp/authTable.vue +++ b/frontend/src/components/business/ms-user-group-comp/authTable.vue @@ -390,18 +390,14 @@ }; // 初始化数据 - const initData = async (id: string, internal: boolean) => { + const initData = async (id: string) => { try { let res: UserGroupAuthSetting[] = []; loading.value = true; if (systemType === AuthScopeEnum.SYSTEM) { res = await getGlobalUSetting(id); } else if (systemType === AuthScopeEnum.ORGANIZATION) { - if (internal) { - res = await getGlobalUSetting(id); - } else { - res = await getOrgUSetting(id); - } + res = await getOrgUSetting(id); } else { res = await getAuthByUserGroup(id); } @@ -449,7 +445,7 @@ }); } Message.success(t('common.saveSuccess')); - initData(props.current.id, props.current.internal); + initData(props.current.id); } catch (error) { // eslint-disable-next-line no-console console.log(error); @@ -459,13 +455,13 @@ // 恢复默认值 const handleReset = () => { if (props.current.id) { - initData(props.current.id, props.current.internal); + initData(props.current.id); } }; watchEffect(() => { if (props.current.id) { - initData(props.current.id, props.current.internal); + initData(props.current.id); } }); defineExpose({ diff --git a/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue b/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue index b063a654df..54a072450e 100644 --- a/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue +++ b/frontend/src/components/business/ms-user-group-comp/msUserGroupLeft.vue @@ -167,6 +167,7 @@ diff --git a/frontend/src/components/business/ms-user-group-comp/userTable.vue b/frontend/src/components/business/ms-user-group-comp/userTable.vue index 65ebae4b7b..3885091ca8 100644 --- a/frontend/src/components/business/ms-user-group-comp/userTable.vue +++ b/frontend/src/components/business/ms-user-group-comp/userTable.vue @@ -3,7 +3,7 @@ -