|
@@ -326,7 +326,7 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.userId != undefined) {
|
|
|
- updateUserApi(this.form).then(response => {
|
|
|
+ updateUserApi(this.form).then(res => {
|
|
|
if(res.code == 200) {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
@@ -335,7 +335,7 @@ export default {
|
|
|
|
|
|
});
|
|
|
} else {
|
|
|
- addRoleApi(this.form).then(response => {
|
|
|
+ addRoleApi(this.form).then(res => {
|
|
|
if(res.code == 200) {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|