Commit 1a2118b9 authored by TZW's avatar TZW

user

parent caf9d76d
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-15 18:06:50
* @Last Modified time: 2022-12-16 10:48:21
*/
import * as React from 'react';
......@@ -145,10 +145,14 @@ function User(props) {
const { data } = useRequest(async () => {
let res = await doFetch({
url: '/auth/sysUser/queryLikeIotUsername',
params: { username: '' },
params: { username: initialState?.currentUser?.username },
});
return res?.data?.dataList;
return res?.data?.dataList.map((it) => ({
label: `${it?.username}-${it?.fullName}`,
value: it?.id,
}));
});
console.log(data);
const columns = useMemo(() => {
let defcolumn = getcolumns(setDrawer, data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment