代码抽取优化、添加重要提示
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/**
|
||||
* 登机门显示转换
|
||||
*/
|
||||
import timeFormatter from './time-formatter';
|
||||
|
||||
export default function (flight) {
|
||||
if (flight['GTDT']) {
|
||||
@@ -13,7 +12,7 @@ export default function (flight) {
|
||||
let set = new Set(gate);
|
||||
return Array.from(set).join(',');
|
||||
} else {
|
||||
return flight['GTDT']['GATE'];
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user