diff --git a/project/pingchang/apps/AppOrganizationChange/components/moment.vue b/project/pingchang/apps/AppOrganizationChange/components/moment.vue index cf868d77..cd007b08 100644 --- a/project/pingchang/apps/AppOrganizationChange/components/moment.vue +++ b/project/pingchang/apps/AppOrganizationChange/components/moment.vue @@ -57,13 +57,14 @@ export default { methods: { getDetail() { const {oid: organizationId} = this + this.detail = {} organizationId && this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId`, null, { params: {organizationId} }).then(res => { if (res?.data) { this.detail = res.data } - }).catch(() => this.detail = {}).finally(() => this.$emit("update:hasConfig", !!this.detail.id)) + }).finally(() => this.$emit("update:hasConfig", !!this.detail.id)) }, }, created() {