修复异常

This commit is contained in:
aixianling
2022-10-28 11:51:24 +08:00
parent 8806c1357f
commit c9db239b23

View File

@@ -57,13 +57,14 @@ export default {
methods: { methods: {
getDetail() { getDetail() {
const {oid: organizationId} = this const {oid: organizationId} = this
this.detail = {}
organizationId && this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId`, null, { organizationId && this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId`, null, {
params: {organizationId} params: {organizationId}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
this.detail = 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() { created() {