refactor(web): update API service, view script and add tests

Frontend:
- services/api.js: update API service client
- views/scripts/EmployeeManagementView.js: update employee management view script
- tests/api-request.test.mjs: update API request tests

Scripts:
- create_employee.sh: add employee creation script
This commit is contained in:
caoxiaozhu
2026-05-14 02:25:15 +00:00
parent 3965c1ec42
commit c0401dbd0d
4 changed files with 200 additions and 44 deletions

7
create_employee.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
export PYTHONIOENCODING=utf-8
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
cd /app/server && .venv/bin/python3 /tmp/create_employee_input.py