diff --git a/src/views/system/dept/authDept.vue b/src/views/system/dept/authDept.vue index bcc2c5d..a77ae0c 100644 --- a/src/views/system/dept/authDept.vue +++ b/src/views/system/dept/authDept.vue @@ -52,11 +52,11 @@ { this.loading = false; let depList = response.data.list || []; this.list = this.handleTree(depList, "code", "pcode"); + this.$nextTick(() => { + console.log(qwe); + if (qwe === null) { + this.$refs.deptTableRef.setCurrentRow(depList[0]); + } else { + this.$refs.deptTableRef.setCurrentRow(qwe); + } + }); }) .catch(() => { this.loading = false; diff --git a/src/views/system/param/systemParamConfig.vue b/src/views/system/param/systemParamConfig.vue index 4dd7462..73d05ee 100644 --- a/src/views/system/param/systemParamConfig.vue +++ b/src/views/system/param/systemParamConfig.vue @@ -186,6 +186,8 @@ export default { } else { callback(); } + }else{ + callback(); } }; return {