diff --git a/src/apps/AppInterview/AppInterview.vue b/src/apps/AppInterview/AppInterview.vue index 4e921461..9ad61b4a 100644 --- a/src/apps/AppInterview/AppInterview.vue +++ b/src/apps/AppInterview/AppInterview.vue @@ -71,15 +71,15 @@ export default { return this.$route.hash == "#add" } }, - onShow() { - this.current = 1; - this.getList() - }, - onReachBottom() { - this.current++; - this.getList() - }, methods: { + emitShow() { + this.current = 1; + this.getList() + }, + emitReachBottom() { + this.current++; + this.getList() + }, getList() { this.$http.post('/app/appinterview/list-xcx', null, { params: { diff --git a/src/apps/AppInterview/interviewDetail.vue b/src/apps/AppInterview/interviewDetail.vue index 5219094c..a71b6616 100644 --- a/src/apps/AppInterview/interviewDetail.vue +++ b/src/apps/AppInterview/interviewDetail.vue @@ -45,7 +45,7 @@ export default { computed: { isEdit() { let flag = this.$route.query?.detail != 1 - !flag && uni.setNavigationBarTitle({title: "走访详情"}) + document.title = flag ? "新增走访" : "走访详情" return flag }, rules() {