mqd 3 tahun lalu
induk
melakukan
e5dd09a6f0
1 mengubah file dengan 6 tambahan dan 4 penghapusan
  1. 6 4
      src/pages/main/leader/processInitiation.vue

+ 6 - 4
src/pages/main/leader/processInitiation.vue

@@ -67,11 +67,13 @@
 				if (v.moduleUrl) {
 				    //加入外部人员权限控制start
                     if (this.outsideModules.length > 0) {
-                        let moduleIndex = this.outsideModules.filter((item, index) =>{
-                            if(item.moduleUrl == v.moduleUrl){
-                               return index;
+                        let moduleIndex = -1;
+                        for (let i = 0; i < this.outsideModules.length; i++) {
+                            if(this.outsideModules[i].moduleUrl == v.moduleUrl){
+                                moduleIndex = i;
+                                break;
                             }
-                        });
+                        }
                         if (moduleIndex < 0) {
                             global.$vm.$notify.error({
                                 title: "提示",