Loading...
Loading...
Compare original and translation side by side
return ctx.inertia.render("users/show", { user: new UserDto(user) });return ctx.inertia.render("users/show", { user: new UserDto(user) });start/routes.tsstart/routes.tsworkflows/workflows/X-Inertiaconsole.log(usePage().props)// Frontend debug
console.log(usePage().props);X-Inertiaconsole.log(usePage().props)// 前端调试代码
console.log(usePage().props);references/references/workflows/| File | Purpose |
|---|---|
| setup-inertia.md | Install and configure Inertia for AdonisJS |
| create-page.md | Build new pages with props |
| build-form.md | Forms with validation and useForm |
| debug-inertia.md | Find and fix Inertia issues |
| </workflows_index> |
workflows/| 文件 | 用途 |
|---|---|
| setup-inertia.md | 为AdonisJS安装和配置Inertia |
| create-page.md | 基于Props构建新页面 |
| build-form.md | 带验证和useForm的表单开发 |
| debug-inertia.md | 排查和修复Inertia问题 |
| </workflows_index> |