This commit is contained in:
susie-laptop 2025-04-12 13:49:41 -04:00
parent 08e3f3f39e
commit 1ee764d4e8
4 changed files with 22 additions and 21 deletions

View File

@ -3,13 +3,13 @@ import SvgIcon from './SvgIcon';
// //
const departmentGroups = { const departmentGroups = {
达人部门: ['达人部门'], 达人部门: ['达人'],
商务部门: ['商务部门'], 商务部门: ['商务'],
样本中心: ['样本中心'], 样本中心: ['样本'],
产品部门: ['产品部门'], 产品部门: ['产品'],
AI自媒体: ['AI自媒体'], AI自媒体: ['AI自媒体'],
HR: ['HR'], HR: ['HR'],
技术部门: ['技术部门'], 技术部门: ['技术'],
}; };
// //

View File

@ -15,13 +15,13 @@ import DeleteConfirmModal from './components/DeleteConfirmModal';
// //
const departmentGroups = { const departmentGroups = {
达人部门: ['达人部门'], 达人部门: ['达人'],
商务部门: ['商务部门'], 商务部门: ['商务'],
样本中心: ['样本中心'], 样本中心: ['样本'],
产品部门: ['产品部门'], 产品部门: ['产品'],
AI自媒体: ['AI自媒体'], AI自媒体: ['AI自媒体'],
HR: ['HR'], HR: ['HR'],
技术部门: ['技术部门'], 技术部门: ['技术'],
}; };
// //

View File

@ -7,8 +7,8 @@ import { showNotification } from '../../store/notification.slice';
export default function Login() { export default function Login() {
const dispatch = useDispatch(); const dispatch = useDispatch();
const navigate = useNavigate(); const navigate = useNavigate();
const [username, setUsername] = useState('leader2'); const [username, setUsername] = useState('');
const [password, setPassword] = useState('leader123'); const [password, setPassword] = useState('');
const [errors, setErrors] = useState({}); const [errors, setErrors] = useState({});
const [submitted, setSubmitted] = useState(false); const [submitted, setSubmitted] = useState(false);
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);

View File

@ -5,13 +5,13 @@ import { checkAuthThunk, signupThunk } from '../../store/auth/auth.thunk';
// //
const departmentGroups = { const departmentGroups = {
达人部门: ['达人部门'], 达人部门: ['达人'],
商务部门: ['商务部门'], 商务部门: ['商务'],
样本中心: ['样本中心'], 样本中心: ['样本'],
产品部门: ['产品部门'], 产品部门: ['产品'],
AI自媒体: ['AI自媒体'], AI自媒体: ['AI自媒体'],
HR: ['HR'], HR: ['HR'],
技术部门: ['技术部门'], 技术部门: ['技术'],
}; };
export default function Signup() { export default function Signup() {
@ -208,10 +208,11 @@ export default function Signup() {
<option value='' disabled> <option value='' disabled>
选择部门 选择部门
</option> </option>
<option value='技术部'>技术部</option> {Object.keys(departmentGroups).map((dept, index) => (
<option value='产品部'>产品部</option> <option key={index} value={dept}>
<option value='市场部'>市场部</option> {dept}
<option value='行政部'>行政部</option> </option>
))}
</select> </select>
{submitted && errors.department && <div className='invalid-feedback'>{errors.department}</div>} {submitted && errors.department && <div className='invalid-feedback'>{errors.department}</div>}
</div> </div>