feat(master/manager/device): Enhance device management with new detail view, API updates, and improved request handling
This commit is contained in:
@@ -102,7 +102,9 @@ export const handleRequestConfig: RequestConfig = {
|
||||
...options,
|
||||
headers: {
|
||||
...options.headers,
|
||||
...(token ? { Authorization: `${token}` } : {}),
|
||||
...(token && !options.headers.Authorization
|
||||
? { Authorization: `${token}` }
|
||||
: {}),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -86,7 +86,9 @@ export const handleRequestConfig: RequestConfig = {
|
||||
...options,
|
||||
headers: {
|
||||
...options.headers,
|
||||
...(token ? { Authorization: `${token}` } : {}),
|
||||
...(token && !options.headers.Authorization
|
||||
? { Authorization: `${token}` }
|
||||
: {}),
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -39,6 +39,10 @@ export const commonManagerRoutes = [
|
||||
path: '/manager/devices',
|
||||
component: './Manager/Device',
|
||||
},
|
||||
{
|
||||
path: '/manager/devices/:thingId',
|
||||
component: './Manager/Device/Detail',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user