Skip to content

Commit 6337e4d

Browse files
committed
update
1 parent f7a0929 commit 6337e4d

File tree

6 files changed

+25
-102
lines changed

6 files changed

+25
-102
lines changed

config/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import slash from 'slash2';
55
import themePluginConfig from './themePluginConfig';
66
import proxy from './proxy';
77
import webpackPlugin from './plugin.config';
8-
import component from '@/locales/en-US/component';
98
const { pwa } = defaultSettings; // preview.pro.ant.design only do not use in your production ;
109
// preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
1110

@@ -155,6 +154,12 @@ export default {
155154
icon: 'setting',
156155
name: 'system',
157156
routes: [
157+
{
158+
name: 'dept',
159+
icon: 'smile',
160+
path: '/sys/dept',
161+
component: './sys/dept',
162+
},
158163
{
159164
name: 'user',
160165
icon: 'smile',

src/components/GlobalHeader/RightContent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import HeaderSearch from '../HeaderSearch';
88
import SelectLang from '../SelectLang';
99
import styles from './index.less';
1010
import NoticeIconView from './NoticeIconView';
11+
1112
export type SiderTheme = 'light' | 'dark';
1213
export interface GlobalHeaderRightProps extends ConnectProps {
1314
theme?: SiderTheme;

src/layouts/BasicLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import RightContent from '@/components/GlobalHeader/RightContent';
2222
import { ConnectState } from '@/models/connect';
2323
import { isAntDesignPro, getAuthorityFromRouter } from '@/utils/utils';
2424
import logo from '../assets/logo.svg';
25+
2526
const noMatch = (
2627
<Result
2728
status={403}

src/models/login.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/pages/sys/user/components/CreateFrom.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const CreateForm: React.FC<CreateFormProps> = props => {
3838
wrapperCol={{ span: 15 }}
3939
label="登录名"
4040
name="userName"
41-
rules={[{ required: true, message: '请输入至少五个字符的规则描述!', min: 2 }]}
41+
rules={[{ required: true, message: '请输入至少五个字符的规则描述!', min: 5 }]}
4242
>
4343
<Input placeholder="请输入用户名" />
4444
</FormItem>
@@ -47,14 +47,26 @@ const CreateForm: React.FC<CreateFormProps> = props => {
4747
wrapperCol={{ span: 15 }}
4848
label="姓名"
4949
name="name"
50-
rules={[{ required: true, message: '请输入至少五个字符的规则描述!', min: 2 }]}
50+
rules={[{ required: true, message: '请输入至少五个字符的规则描述!', min: 5 }]}
5151
>
5252
<Input placeholder="请输入真实姓名" />
5353
</FormItem>
54-
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="手机号码" name="phone">
54+
<FormItem
55+
labelCol={{ span: 5 }}
56+
wrapperCol={{ span: 15 }}
57+
label="手机号码"
58+
name="phone"
59+
// todo 手机号验证 rules={[{}]}
60+
>
5561
<Input placeholder="请输入手机号码" />
5662
</FormItem>
57-
<FormItem labelCol={{ span: 5 }} wrapperCol={{ span: 15 }} label="密码" name="password">
63+
<FormItem
64+
labelCol={{ span: 5 }}
65+
wrapperCol={{ span: 15 }}
66+
label="密码"
67+
name="password"
68+
// todo 手机号验证 rules={[{}]}
69+
>
5870
<Input placeholder="请输入登录密码" />
5971
</FormItem>
6072
</Form>

src/pages/sys/user/components/UpdateForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const UpdateForm: React.FC<UpdateFormProps> = props => {
5050
return (
5151
<Modal
5252
destroyOnClose
53-
title="新建规则"
53+
title="修改用户"
5454
visible={updateModalVisible}
5555
onOk={okHandle}
5656
onCancel={() => onCancel()}

0 commit comments

Comments
 (0)