From 0f594fcdde0445ac367ef46787719d6db576c91c Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Fri, 2 Sep 2022 14:20:10 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/category/fieldManage/index.vue | 2 +- src/views/components/field/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } },