[improvement](semantic-fe) Added parameter compatibility for network requests in different modes

This commit is contained in:
tristanliu
2023-06-21 11:10:07 +08:00
parent 693fc03c6f
commit 9c9d7382fe
12 changed files with 42 additions and 42 deletions

View File

@@ -53,14 +53,14 @@ const PermissionTable: React.FC<Props> = ({ domainManger }) => {
const queryDepartmentData = async () => {
const { code, data } = await getDepartmentTree();
if (code === 200) {
if (code === 200 || code === '0') {
setDepartmentTreeData(data);
}
};
const queryTmePersonData = async () => {
const { code, data } = await getAllUser();
if (code === 200) {
if (code === 200 || Number(code) === 0) {
setTmePerson(data);
}
};