Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -125,14 +125,18 @@ export default { | ... | @@ -125,14 +125,18 @@ export default { |
| 125 | (item) => item.isEtesRoute == "N" | 125 | (item) => item.isEtesRoute == "N" |
| 126 | ); // 过滤ET86航线 | 126 | ); // 过滤ET86航线 |
| 127 | const routes = []; | 127 | const routes = []; |
| 128 | + if (isEtesRoute.length) { | ||
| 128 | isEtesRoute.map((item) => { | 129 | isEtesRoute.map((item) => { |
| 129 | routes.push({ config: false, route: item.route }); | 130 | routes.push({ config: false, route: item.route }); |
| 130 | }); | 131 | }); |
| 132 | + } else { | ||
| 133 | + this.msgWarning("暂无航线"); | ||
| 134 | + } | ||
| 131 | this.routeList = isEtesRoute; | 135 | this.routeList = isEtesRoute; |
| 132 | this.routesInfo = routes; | 136 | this.routesInfo = routes; |
| 133 | } else { | 137 | } else { |
| 134 | this.routeList = []; | 138 | this.routeList = []; |
| 135 | - this.msgError("暂无航线"); | 139 | + this.msgWarning("暂无航线"); |
| 136 | } | 140 | } |
| 137 | } | 141 | } |
| 138 | }) | 142 | }) | ... | ... |
-
Please register or login to post a comment