From 4db6925d38305b721a01c45a7a942867458ddf10 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 28 Mar 2022 16:59:04 +0800 Subject: [PATCH] BUG 28582 --- packages/jianping/AppHelpedResident/hrAdd.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/jianping/AppHelpedResident/hrAdd.vue b/packages/jianping/AppHelpedResident/hrAdd.vue index bdc1f41d..d822217a 100644 --- a/packages/jianping/AppHelpedResident/hrAdd.vue +++ b/packages/jianping/AppHelpedResident/hrAdd.vue @@ -9,10 +9,10 @@
- + - @@ -208,8 +208,11 @@ export default { }, computed: { ...mapState(['user']), + isEdit(){ + return !!this.$route.query.id + }, addTitle() { - return !!this.$route.query.id ? "编辑监测对象" : "添加监测对象" + return this.isEdit? "编辑监测对象" : "添加监测对象" }, rules() { return {