修复异常
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user