fix(pos): default tenant ID en login para evitar error sin parametro URL
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1125,7 +1125,8 @@
|
|||||||
------------------------------------------------------------------ */
|
------------------------------------------------------------------ */
|
||||||
// Get tenant_id from URL or localStorage
|
// Get tenant_id from URL or localStorage
|
||||||
var tenantId = new URLSearchParams(window.location.search).get('tenant')
|
var tenantId = new URLSearchParams(window.location.search).get('tenant')
|
||||||
|| localStorage.getItem('pos_tenant_id');
|
|| localStorage.getItem('pos_tenant_id')
|
||||||
|
|| '11'; // Default tenant — remove in production when multi-tenant selector exists
|
||||||
// Device ID (persistent)
|
// Device ID (persistent)
|
||||||
var deviceId = localStorage.getItem('pos_device_id');
|
var deviceId = localStorage.getItem('pos_device_id');
|
||||||
if (!deviceId) {
|
if (!deviceId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user