Browse Source

消息自动回复

pzc 4 years ago
parent
commit
82e7ff388c
3 changed files with 3 additions and 2 deletions
  1. 1 1
      UI/dist1/umi.js
  2. 1 1
      UI/src/components/Grid/BirdGrid.js
  3. 1 0
      UI/src/utils/permission.js

File diff suppressed because it is too large
+ 1 - 1
UI/dist1/umi.js


+ 1 - 1
UI/src/components/Grid/BirdGrid.js

@@ -399,7 +399,7 @@ class BirdGrid extends React.Component {
   /* 选择框点击事件 */
   checkClick(value) {
     let checkValues = this.state.checkedValues;
-    let newCheckValues= checkValues;
+    let newCheckValues= checkValues?checkValues:[];
 
     let index = newCheckValues.findIndex(p => p === value);
     if (index < 0) {

+ 1 - 0
UI/src/utils/permission.js

@@ -7,6 +7,7 @@ const permission = {
     if (util.string.isEmpty(permissionName)) return true;
 
     let permissions = permission.getPermissions();
+    permissions = permissions?permissions:[];
     let pass = permissions.findIndex(p => p.url === permissionName) >= 0;
     return pass;
   },