后端返回里没有 applicant 键。model.ApplyOrder 确实有 Applicant 字段,但那是 另一张旧表的模型;审批页走的 MaterialApplication 只 SELECT u.username 并扫进 &app.Username(json tag 为 username)。列显示一直正常,全靠 || 后半段兜住, 左分支是死代码,去掉以免误导成还有第二个数据来源。 改为 row.username || '-'。 |
||
|---|---|---|
| .. | ||
| node_modules | ||
| src | ||
| .dockerignore | ||
| Dockerfile | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
| vitest.config.js | ||