瀏覽代碼

fix(user): #3738 bug

Lind 3 年之前
父節點
當前提交
16232fa8f8
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/pages/system/User/Save/index.tsx

+ 2 - 3
src/pages/system/User/Save/index.tsx

@@ -280,10 +280,9 @@ const Save = (props: Props) => {
               onClick={() => {
                 const tab: any = window.open(`${origin}/#/system/department?save=true`);
                 tab!.onTabSaveSuccess = (value: any) => {
+                  console.log(value, 'value');
                   form.setFieldState('orgIdList', (state) => {
-                    state.dataSource = state.dataSource?.concat([
-                      { label: value.name, value: value.id },
-                    ]);
+                    state.dataSource = state.dataSource?.concat({ name: value.name, id: value.id });
                   });
                 };
               }}