738 B
738 B
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-encodeddistribution_codequery 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