Files
gt-agent-company/openspec/changes/update-agent-distribution-registration-link/proposal.md
luo b2ed8b5df4
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m6s
feat: 分销码
2026-10-08 12:26:39 +08:00

16 lines
738 B
Markdown

# Change: Encode agent registration URL in distribution QR code
## Why
The current distribution QR code encodes only the raw distribution code, so scanning it does not open agent registration with the code prefilled. Scanners should open the registration route with the current shop's distribution code in its query string.
## What Changes
- Change the locally generated QR content to an absolute URL composed from `VITE_API_BASE_URL`, `/agent-registration`, and the URL-encoded `distribution_code` query parameter.
- Keep the existing agent-only access checks, shop lookup, and local QR rendering behavior.
## Impact
- Affected specs: `agent-distribution-code`
- Affected code: `src/pages/agent-system/distribution-code/index.vue`