@yeeyoon/library 3.0.3 → 3.0.4
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,6 +168,10 @@ 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
|
+
}
|
171
175
|
getProductList(id);
|
172
176
|
} /*else {
|
173
177
|
setTimeout(() => {
|
@@ -183,9 +187,6 @@ const Header = (props) => {
|
|
183
187
|
allProduct = data;
|
184
188
|
leftProduct = _xorBy(allProduct, currentProduct, 'id');
|
185
189
|
}
|
186
|
-
if (!data.filter((item) => item.code === 200000728).length) {
|
187
|
-
handleException && handleException();
|
188
|
-
}
|
189
190
|
};
|
190
191
|
|
191
192
|
const doLogout = async (userId) => {
|