소스 검색

修复去掉中间页面后少传参数

gcz 2 년 전
부모
커밋
c9f47cab4d
2개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 3
      pages/deviceList/deviceListType1/deviceListType1.vue
  2. 1 3
      pages/deviceList/deviceListType2/deviceListType2.vue

+ 1 - 3
pages/deviceList/deviceListType1/deviceListType1.vue

@@ -94,9 +94,7 @@
 			if(page.roadNo){
 				this.roadNo = page.roadNo
 			}
-			if(page.deviceType){
-				this.deviceType = page.deviceType
-			}
+			this.deviceType = 1;
 			this.getRoadList()
 		},
 		onShow(){

+ 1 - 3
pages/deviceList/deviceListType2/deviceListType2.vue

@@ -116,9 +116,7 @@
 			if(page.roadNo){
 				this.roadNo = page.roadNo
 			}
-			if(page.deviceType){
-				this.deviceType = page.deviceType
-			}
+			this.deviceType = 2;
 			this.getRoadList()
 		},
 		onShow(){