wgl 4 лет назад
Родитель
Сommit
021a69046c
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/projects/business/views/HouseKeeper/Admin/Person/Device.vue

+ 4 - 0
src/projects/business/views/HouseKeeper/Admin/Person/Device.vue

@@ -61,6 +61,9 @@
 			}
 			}
 		},
 		},
 		created() {
 		created() {
+			if (this.add_person_data) {
+				this.subForm = this.add_person_data;
+			}
 			if (!this.subForm.name || !this.subForm.phone || !this.subForm.faceImageUrl) {
 			if (!this.subForm.name || !this.subForm.phone || !this.subForm.faceImageUrl) {
 				this.$router.push({
 				this.$router.push({
 					name: 'HouseKeeperAdminPersonAdd',
 					name: 'HouseKeeperAdminPersonAdd',
@@ -124,6 +127,7 @@
 			...mapGetters({
 			...mapGetters({
 				openId: 'wx_openid',
 				openId: 'wx_openid',
 				token: 'token',
 				token: 'token',
+				add_person_data: 'add_person_data'
 			})
 			})
 		}
 		}
 	}
 	}