fix: 修复setup点击back step高亮未同步
This commit is contained in:
@@ -389,12 +389,14 @@ export default {
|
|||||||
switch (step) {
|
switch (step) {
|
||||||
case 0:
|
case 0:
|
||||||
this.activeStep = 0
|
this.activeStep = 0
|
||||||
|
this.step = 0
|
||||||
break
|
break
|
||||||
case 1:
|
case 1:
|
||||||
if (this.prevent_next) { return }
|
if (this.prevent_next) { return }
|
||||||
this.prevent_next = true
|
this.prevent_next = true
|
||||||
if (this.activeStep > 1) {
|
if (this.activeStep > 1) {
|
||||||
this.activeStep = 1
|
this.activeStep = 1
|
||||||
|
this.step = 1
|
||||||
this.prevent_next = false
|
this.prevent_next = false
|
||||||
} else {
|
} else {
|
||||||
this.getValidateCode()
|
this.getValidateCode()
|
||||||
@@ -430,6 +432,7 @@ export default {
|
|||||||
this.prevent_next = true
|
this.prevent_next = true
|
||||||
if (this.activeStep > 2) {
|
if (this.activeStep > 2) {
|
||||||
this.activeStep = 2
|
this.activeStep = 2
|
||||||
|
this.step = 2
|
||||||
this.prevent_next = false
|
this.prevent_next = false
|
||||||
} else {
|
} else {
|
||||||
this.$refs['db-form'].validate((valid) => {
|
this.$refs['db-form'].validate((valid) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user