添加合同和卷宗数据隔离

This commit is contained in:
2025-06-03 12:16:31 +08:00
parent b02978508d
commit 0397139ad8
20 changed files with 1190 additions and 437 deletions
+3 -1
View File
@@ -21,6 +21,8 @@ export async function action({ request }: ActionFunctionArgs) {
const username = formData.get("username") as string;
const password = formData.get("password") as string;
const userRole = formData.get("userRole") as UserRole || 'common';
console.log("userRole-----", userRole);
// 简单的登录验证,实际应用中应该进行真正的身份验证
if (!username || !password) {
@@ -116,7 +118,7 @@ export default function Login() {
required
>
<option value="common"></option>
{/* <option value="developer">开发者</option> */}
<option value="developer"></option>
</select>
</div>