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) { if (!err) {
this.btnLoading = true this.btnLoading = true
state.passwordLevelChecked = false state.passwordLevelChecked = false
this.$store.dispatch('ChangePassword', values).then(res => { this.$store
this.btnLoading = false .dispatch('ChangePassword', values)
.then(res => {
this.$message.success('修改密码成功') this.$message.success('修改密码成功')
this.$store.dispatch('Logout').then(() => { this.$store.dispatch('Logout').then(() => {
this.$router.push({ name: 'login' }) this.$router.push({ name: 'login' })
}) })
}) })
.finally(() => {
this.btnLoading = false
})
} }
}) })
} }

View File

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

View File

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