diff --git a/src/views/category/fieldManage/index.vue b/src/views/category/fieldManage/index.vue index 93db276..e2330e6 100644 --- a/src/views/category/fieldManage/index.vue +++ b/src/views/category/fieldManage/index.vue @@ -158,7 +158,7 @@ export default { return false }, [CRUD.HOOK.beforeSubmit]() { - if (this.crud.add > CRUD.STATUS.NORMAL) { + if (this.crud.status.add > CRUD.STATUS.NORMAL) { this.crud.form.isSequence = this.crud.data.reduce((prev, cur) => { return { isSequence: Math.max(prev.isSequence, cur.isSequence) } }).isSequence + 1 } }, diff --git a/src/views/components/field/index.vue b/src/views/components/field/index.vue index 97a6dcf..d2c5964 100644 --- a/src/views/components/field/index.vue +++ b/src/views/components/field/index.vue @@ -129,7 +129,7 @@ export default { }, [CRUD.HOOK.beforeSubmit]() { this.crud.form.isType = this.isType - if (this.crud.add > CRUD.STATUS.NORMAL) { + if (this.crud.status.add > CRUD.STATUS.NORMAL) { this.crud.form.isSequence = this.crud.data.reduce((prev, cur) => { return { isSequence: Math.max(prev.isSequence, cur.isSequence) } }).isSequence + 1 } },