修复异常

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: {
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() {