16 lines
738 B
Markdown
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`
|