|
@@ -96,7 +96,7 @@
|
|
|
|
|
|
<div class="btns">
|
|
|
<el-button type="primary" @click="saveForm">保存</el-button>
|
|
|
- <el-button type="primary" plain @click="cancelForm"
|
|
|
+ <el-button type="primary" plain @click="cancel"
|
|
|
>取消</el-button>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -161,16 +161,17 @@ export default {
|
|
|
}).then(res => {
|
|
|
if(res.code == 200){
|
|
|
this.$message.success("保存成功");
|
|
|
- this.$router.history.go(-1)
|
|
|
+ this.cancel()
|
|
|
}else{
|
|
|
this.$message.error(res.message || "保存失败");
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- cancelForm() {
|
|
|
- this.$router.history.go(-1)
|
|
|
+ cancel() {
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/accountManagement'
|
|
|
+ })
|
|
|
},
|
|
|
-
|
|
|
},
|
|
|
// mounted: {},
|
|
|
};
|