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 {