@wltech/hooks
Advanced tools
Comparing version 0.0.8 to 0.0.9
# @wltech/mobile-hooks | ||
## 0.0.9 | ||
### Patch Changes | ||
- 修改 bug | ||
## 0.0.8 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@wltech/hooks", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "", |
@@ -7,3 +7,3 @@ type TMaterialMultipleChooseParams = { | ||
isEditable: boolean; | ||
isMobileOrPC: boolean; | ||
isMobileOrPC: "mobile" | "pc"; | ||
isUserOrCorp: "user" | "corp"; | ||
@@ -41,6 +41,7 @@ }; | ||
): TMaterialMultipleChooseReturn[] => { | ||
console.log(params); | ||
const { isUserOrCorp, isEditable, isManager, isSingle, isWeb302 } = params; | ||
const isUser = isUserOrCorp === "user"; | ||
const isTopAuth = isManager; | ||
const commonAuth = (isUser || isTopAuth) && isEditable; | ||
const commonAuth = (isUser && isTopAuth) || isEditable; | ||
return [ | ||
@@ -47,0 +48,0 @@ { |
Sorry, the diff of this file is not supported yet
9878
322