|
|
@@ -31,6 +31,7 @@
|
|
|
// import axiosObj from '../../utils/axiosPlugin'
|
|
|
import tool from '@/utils/tool'
|
|
|
import { noLoginModifyPassword } from '@/api/user'
|
|
|
+ import ElementUI from 'element-ui'
|
|
|
|
|
|
export default {
|
|
|
name: 'modify-password',
|
|
|
@@ -54,11 +55,19 @@
|
|
|
let objectThis = this
|
|
|
noLoginModifyPassword(this.passwordInfo).then(response => {
|
|
|
this.modifyPasswordButtonStat = false
|
|
|
- this.$message.success(response.data)
|
|
|
+ // this.$message.success(response.message)
|
|
|
+ this.$message({
|
|
|
+ message: response.message,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
objectThis.$router.push('/login')
|
|
|
}).catch(err => {
|
|
|
- this.$message.error(err)
|
|
|
- this.modifyPasswordButtonStat = false
|
|
|
+ this.$message({
|
|
|
+ message: err,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ // this.$message.error(err)
|
|
|
+ this.modifyPasswordButtonStat = false
|
|
|
})
|
|
|
// axiosObj.post(path, this.passwordInfo).then(response => {
|
|
|
// this.$message.success(response)
|