diff --git a/src/views/modules/property/group-approve.vue b/src/views/modules/property/group-approve.vue index e7749b2..b2b0f46 100644 --- a/src/views/modules/property/group-approve.vue +++ b/src/views/modules/property/group-approve.vue @@ -110,19 +110,19 @@ export default { } this.$http['post']( '/property/group/operate', this.dataForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => { }) + }) + }).catch(() => { }) }, 1000, { 'leading': true, 'trailing': false }) } } diff --git a/src/views/modules/sys/role-add-or-update.vue b/src/views/modules/sys/role-add-or-update.vue index d503eab..7c9a8a1 100644 --- a/src/views/modules/sys/role-add-or-update.vue +++ b/src/views/modules/sys/role-add-or-update.vue @@ -124,7 +124,7 @@ export default { appMenuList: [], categoryList: [], roleTypeList: [], - analysisMenuList:[], + analysisMenuList: [], dataForm: { id: '', name: '',