update 实现修改密码. 并对一些用户填写的格式进行了验证
This commit is contained in:
@@ -13,6 +13,9 @@ export default {
|
||||
},
|
||||
action: {
|
||||
type: Function
|
||||
},
|
||||
successMessage: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
|
||||
@@ -124,7 +127,7 @@ export default {
|
||||
&& this.action(data)
|
||||
.then(({ success }) => {
|
||||
if (success) {
|
||||
this.$message.success('保存成功');
|
||||
this.$message.success(this.successMessage || '保存成功');
|
||||
this.onClose();
|
||||
this.$emit('ok');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user