|
@@ -275,11 +275,13 @@ export default {
|
|
|
},
|
|
|
//重置密码
|
|
|
resetPassword(){
|
|
|
- this.$store.dispatch('userMember/resetPassword',{id:this.editId}).then(res=> {
|
|
|
+ let password = Math.random().toString(36).slice(-6); // 随机生成6个字母的组合
|
|
|
+
|
|
|
+ this.$store.dispatch('userMember/resetPassword',{id:this.editId,password:password}).then(res=> {
|
|
|
if(res.code==200){
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
- message: '密码重置为:111111'
|
|
|
+ message: '密码重置为:' + password
|
|
|
});
|
|
|
}
|
|
|
}).catch(() => {
|