|
@@ -366,21 +366,23 @@ export default {
|
|
|
1
|
|
|
);
|
|
|
delete data.timeArray;
|
|
|
- this.$api.editmockapply(data).then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
- setTimeout(() => {
|
|
|
- this.$store
|
|
|
- .dispatch("tagsView/exitView", this.$route)
|
|
|
- .then((res) => {
|
|
|
- this.$router.push({
|
|
|
- path: "mockExamArrangement",
|
|
|
+ this.$api
|
|
|
+ .editmockapply(data)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store
|
|
|
+ .dispatch("tagsView/exitView", this.$route)
|
|
|
+ .then((res) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: "mockExamArrangement",
|
|
|
+ });
|
|
|
});
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- this.disabledBtn = false;
|
|
|
- });
|
|
|
- }, 300);
|
|
|
- });
|
|
|
+ }, 300);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.disabledBtn = false;
|
|
|
+ });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message.error(err.toString().replace("Error:", ""));
|