daxu0403 7 лет назад
Родитель
Сommit
3ad628b7df
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/pages/order_taking_page.dart

+ 2 - 2
lib/pages/order_taking_page.dart

@@ -99,8 +99,8 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
         setState(() {
         setState(() {
           checkStatusList = [];
           checkStatusList = [];
           lineList = StationLine.fromJson(resp.data).data;
           lineList = StationLine.fromJson(resp.data).data;
-          LineObj tempLine =LineObj(code:'xxxx',id:-1,name:'未知线路');
-          lineList.add(tempLine);
+          LineObj tempLine =LineObj(code:'xxxx',id:-1,name:'未知线路');//创建未知线路
+          lineList.add(tempLine);//添加未知线路
           getKey('lineIdStr').then((value) {
           getKey('lineIdStr').then((value) {
             if (value != null) {
             if (value != null) {
               for (int i = 0; i < lineList.length; i++) {
               for (int i = 0; i < lineList.length; i++) {