Commit 584a5877 authored by TZW's avatar TZW

111

parent c7729c19
......@@ -12,7 +12,7 @@ import routes from '../config/authRoutes';
const { LinkOutlined } = Ant4Icons;
// const isDev = process.env.NODE_ENV === 'development';
const isDev = false;
const isDev = true;
//console.log(isDev);
const loginPath = '/user/login';
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-14 09:15:23
* @Last Modified time: 2022-12-15 17:19:25
*/
import * as React from 'react';
......@@ -15,8 +15,11 @@ import getcolumns from './columns';
import { doFetch } from '@/utils/doFetch';
import { message, AutoComplete } from 'antd';
import ExtendField from '@/components/ExtendField';
import { useModel } from 'umi';
function User(props) {
const { initialState, loading, error, refresh, setInitialState } = useModel('@@initialState');
console.log('usermsg:', initialState);
const actionRef = useRef(),
formRef = useRef();
const [drawer, setDrawer] = useState({
......@@ -264,6 +267,7 @@ function User(props) {
type: 'primary',
disabled: false,
onClick: () => {
// let res = await doFetch({url:})
setDrawer((s) => ({
...s,
visible: true,
......
......@@ -81,6 +81,7 @@ function getcolumns(ifs) {
},
fieldProps: {
disabled: ifs,
placeholder: '请输入,用分号“;”隔开',
},
hideInForm: {
fieldChar: ['1'],
......
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