Elements-SY

modify

...@@ -1021,10 +1021,10 @@ export default { ...@@ -1021,10 +1021,10 @@ export default {
1021 const { code, data } = result; 1021 const { code, data } = result;
1022 if (code == 200) { 1022 if (code == 200) {
1023 let newRoute = JSON.parse(JSON.stringify(this.routeList.concat(data.routeList))) 1023 let newRoute = JSON.parse(JSON.stringify(this.routeList.concat(data.routeList)))
1024 - const result = newRoute.filter((item, index, self) => { 1024 + const resRoute = newRoute.filter((item, index, self) => {
1025 return self.findIndex(t => JSON.stringify(t) === JSON.stringify(item)) === index; 1025 return self.findIndex(t => JSON.stringify(t) === JSON.stringify(item)) === index;
1026 }); 1026 });
1027 - this.routeList = Array.from(new Set(result)); 1027 + this.routeList = Array.from(new Set(resRoute));
1028 if (data.routeList.length) { 1028 if (data.routeList.length) {
1029 this.routeList.forEach(route => { 1029 this.routeList.forEach(route => {
1030 let routesStatus = 1 1030 let routesStatus = 1
......