|
@@ -641,13 +641,13 @@ const getStations_Status =async () => {
|
|
|
statusList.value = data.list
|
|
|
}
|
|
|
|
|
|
-const getStatus=(item)=>{
|
|
|
- const level_main = item.as_code + "|LEVEL_MAIN"
|
|
|
+const getStatus = (item) => {
|
|
|
+ const level_main = item.as_code + "|LEVEL_MAIN";
|
|
|
const found_main = statusList.value.find(item => item.key === level_main);
|
|
|
- if(found_main.as_link ===2){
|
|
|
- return true
|
|
|
- }else {
|
|
|
- return false
|
|
|
+ if (found_main !== undefined && found_main.as_link === 2) {
|
|
|
+ return true;
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|