Browse Source

feature:按钮判断

chenqilong 2 years ago
parent
commit
d95e730d29
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/utils/common.js

+ 3 - 0
src/utils/common.js

@@ -32,6 +32,9 @@ export const warningNotify = msg => {
  * @returns
  * @returns
  */
  */
 export const checkBtnRole = (value, btnRole) => {
 export const checkBtnRole = (value, btnRole) => {
+  if (btnRole === undefined) {
+    return false
+  }
   if (!btnRole) {
   if (!btnRole) {
     return true
     return true
   }
   }