diff --git a/src/apps/AppInterview/AppInterview.vue b/src/apps/AppInterview/AppInterview.vue index 04b2b457..c8cabc3a 100644 --- a/src/apps/AppInterview/AppInterview.vue +++ b/src/apps/AppInterview/AppInterview.vue @@ -73,9 +73,9 @@ export default { }, methods: { emitShow() { - document.title = document.title || "调查走访" + document.title = "调查走访" if (this.showDetail) { - + document.title = this.$route.query.detail ? "走访详情" : "新增走访" } else { this.current = 1; this.getList() diff --git a/src/apps/AppInterview/interviewDetail.vue b/src/apps/AppInterview/interviewDetail.vue index d317db0d..abdecd77 100644 --- a/src/apps/AppInterview/interviewDetail.vue +++ b/src/apps/AppInterview/interviewDetail.vue @@ -44,9 +44,7 @@ export default { inject: {root: {}}, computed: { isEdit() { - let flag = this.$route.query?.detail != 1 - document.title = flag ? "新增走访" : "走访详情" - return flag + return this.$route.query?.detail != 1 } }, data() { diff --git a/src/components/AiImage.vue b/src/components/AiImage.vue index e99be60a..820a14a2 100644 --- a/src/components/AiImage.vue +++ b/src/components/AiImage.vue @@ -43,7 +43,10 @@ export default { if (!!this.image) { uni.previewImage({ current: this.image, - urls: [this.image] + urls: [this.image], + success() { + sessionStorage.setItem("previewImage"," 1") + } }) } else { this.previewFile({size: 1, ...this.file})