Commit 88d2c8ad by Jaxon

feat: 编辑 - 运营确认 - 更新步骤处理逻辑,添加错误抛出

1 parent 8eb2c42d
...@@ -180,19 +180,19 @@ export default { ...@@ -180,19 +180,19 @@ export default {
}, },
async handleNextSteps() { async handleNextSteps() {
console.log("this.step.active", this.steps.active); console.log("this.step.active", this.steps.active);
this.steps.active += 1;
await this.changeStepsBefore(); await this.changeStepsBefore();
this.$refs.carouselRef.next(); console.log("????");
this.steps.active += 1;
// this.$refs.carouselRef.next();
}, },
async handlePreviousSteps() { async handlePreviousSteps() {
if (this.steps.active === 0) { if (this.steps.active === 0) {
// TODO: message: 已经是第一步了 // TODO: message: 已经是第一步了
return; return;
} }
this.steps.active -= 1;
await this.changeStepsBefore(); await this.changeStepsBefore();
this.$refs.carouselRef.prev(); this.steps.active -= 1;
// this.$refs.carouselRef.prev();
}, },
async changeStepsBefore() { async changeStepsBefore() {
...@@ -209,6 +209,8 @@ export default { ...@@ -209,6 +209,8 @@ export default {
if (isView(currentComponents.mode)) { if (isView(currentComponents.mode)) {
currentComponents.mode = VIEW_MODE.EDIT; currentComponents.mode = VIEW_MODE.EDIT;
} }
// 继续抛出错误
throw e;
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!