feat: 问题修复

This commit is contained in:
cgd_mac 2022-02-26 15:38:50 +08:00
parent fa54b01e97
commit 889f4b4947
3 changed files with 13 additions and 7 deletions

View File

@ -220,13 +220,17 @@ export default {
if (!err) {
this.btnLoading = true
state.passwordLevelChecked = false
this.$store.dispatch('ChangePassword', values).then(res => {
this.btnLoading = false
this.$message.success('修改密码成功')
this.$store.dispatch('Logout').then(() => {
this.$router.push({ name: 'login' })
this.$store
.dispatch('ChangePassword', values)
.then(res => {
this.$message.success('修改密码成功')
this.$store.dispatch('Logout').then(() => {
this.$router.push({ name: 'login' })
})
})
.finally(() => {
this.btnLoading = false
})
})
}
})
}

View File

@ -93,6 +93,8 @@ const user = {
password: data.password
}).then(res => {
resolve(res)
}).finally((error)=>{
reject(error)
})
} catch (error) {
reject(error)

View File

@ -70,7 +70,7 @@ export default {
courseType: '' //
},
queryOptions: [
{ type: 'select-dic-tree', placeholder: '课程分类', key: 'courseType', options: [] }
{ type: 'select-dic-tree', width: '200', placeholder: '课程分类', key: 'courseType', options: [] }
]
}
},