@yeeyoon/library 3.0.4 → 3.0.5
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.
@@ -168,10 +168,6 @@ const Header = (props) => {
|
|
168
168
|
setUserId(id);
|
169
169
|
setAvatarProps({ src: data.headUrl || DEFAULT_AVATAR_URL });
|
170
170
|
currentProduct = tenants[0].applications || [];
|
171
|
-
if (!currentProduct.filter((item) => item.code === 200000728).length) {
|
172
|
-
handleException && handleException();
|
173
|
-
return;
|
174
|
-
}
|
175
171
|
getProductList(id);
|
176
172
|
} /*else {
|
177
173
|
setTimeout(() => {
|
@@ -28,7 +28,7 @@ const TenantSelector = (props) => {
|
|
28
28
|
}
|
29
29
|
setTenantList(tenants);
|
30
30
|
setCurrentTenantId(id);
|
31
|
-
tenantIdChangeCb(id, name);
|
31
|
+
tenantIdChangeCb(id, name, tenants);
|
32
32
|
}
|
33
33
|
}, []);
|
34
34
|
|
@@ -44,7 +44,7 @@ const TenantSelector = (props) => {
|
|
44
44
|
const { children } = option;
|
45
45
|
setCurrentTenantId(value);
|
46
46
|
if (tenantIdChangeCb) {
|
47
|
-
tenantIdChangeCb(value, children);
|
47
|
+
tenantIdChangeCb(value, children, tenantList);
|
48
48
|
}
|
49
49
|
}}
|
50
50
|
>
|