byteplan-cli 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.js +2 -1
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -246,7 +246,7 @@ userCmd
|
|
|
246
246
|
const userInfo = await getUserInfo();
|
|
247
247
|
|
|
248
248
|
const tenants = (userInfo.tenantList || []).map(t => ({
|
|
249
|
-
tenantId: t.
|
|
249
|
+
tenantId: t.id, // API 返回的字段名是 id
|
|
250
250
|
tenantName: t.tenantName,
|
|
251
251
|
tenantCode: t.tenantCode,
|
|
252
252
|
isCurrent: t.tenantCode === userInfo.user?.tenantCode,
|
|
@@ -256,6 +256,7 @@ userCmd
|
|
|
256
256
|
tenants,
|
|
257
257
|
total: tenants.length,
|
|
258
258
|
currentTenantCode: userInfo.user?.tenantCode || '',
|
|
259
|
+
currentTenantId: userInfo.user?.tenantId || '',
|
|
259
260
|
});
|
|
260
261
|
} catch (error) {
|
|
261
262
|
printError(error);
|