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