This commit is contained in:
熊成强 2020-11-20 15:49:42 +08:00
parent 419896f1a7
commit e2a5b65c75
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const user = {
}
},
GET_DEPLIST: async ({ commit }) => {
let data = getDepList({type: 1})
let data = await getDepList({type: 1})
commit('SET_DEPLIST', data.code === 200 ? data.data : [])
return data
}

View File

@ -57,5 +57,7 @@ router.beforeEach(async (to, from, next) => {
})
router.afterEach(async () => {
console.log('afterEach: ')
await store.dispatch('GET_DEPLIST')
})

View File

@ -136,8 +136,6 @@ export default {
watch: {
info: {
handler (n, o) {
console.log('n: ', n)
console.log('this.processLsit: ', this.processLsit)
this.processLsit.length > 0 && this.processLsit.map(j => {
for (let i in n) {
if (n[i] && j.id === n[i].id) j.label = n[i].label