diff --git a/acupuncture-前台/src/views/followFile/work.vue b/acupuncture-前台/src/views/followFile/work.vue index 88b400d7..a32f0f59 100644 --- a/acupuncture-前台/src/views/followFile/work.vue +++ b/acupuncture-前台/src/views/followFile/work.vue @@ -539,8 +539,8 @@ export default { }, created() { let { name, phone } = this.$route.query; - this.queryParams.param.keywords = name; - this.queryParams.param.phone = phone; + this.queryParams.param.keywords = name || ""; + this.queryParams.param.phone = phone || ""; this.getList(); this.getFollowupQuery(); }, diff --git a/acupuncture-前台/src/views/medicalFile/index.vue b/acupuncture-前台/src/views/medicalFile/index.vue index 2a3cabb6..a96c191d 100644 --- a/acupuncture-前台/src/views/medicalFile/index.vue +++ b/acupuncture-前台/src/views/medicalFile/index.vue @@ -975,8 +975,8 @@ export default { created() { // 从url获取idCard let { name, phone } = this.$route.query; - this.queryParams.param.keywords = name; - this.queryParams.param.phone = phone; + this.queryParams.param.keywords = name || ""; + this.queryParams.param.phone = phone || ""; let patientInfo; if (this.$route.query.patientInfo) { this.form = JSON.parse(this.$route.query.patientInfo);