|
@@ -75,12 +75,12 @@ export default {
|
|
|
}
|
|
|
if (item.isSso) {
|
|
|
let index = this.ssoSystems.findIndex(i=>i.name==item.name)
|
|
|
- if (index) {
|
|
|
+ if (index>-1) {
|
|
|
this.ssoSystems.splice(index, 1)
|
|
|
}
|
|
|
} else {
|
|
|
let index = this.functions.findIndex(i=>i.name==item.name)
|
|
|
- if (index) {
|
|
|
+ if (index>-1) {
|
|
|
this.functions.splice(index, 1)
|
|
|
}
|
|
|
}
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
},
|
|
|
minusFunction(item) {
|
|
|
let index = this.customFunction.findIndex(i => i.name==item.name);
|
|
|
- if (index) {
|
|
|
+ if (index>-1) {
|
|
|
this.customFunction.splice(index, 1);
|
|
|
if (item.isSso) {
|
|
|
this.ssoSystems.push(item);
|