From 1079f0f1f9a5fb6edb9943178655b45d020c3b2c Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Mon, 29 Aug 2022 16:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=AE=A1=E7=90=86bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E8=BF=9E=E7=BB=AD=E5=8A=A02?= =?UTF-8?q?=E6=AC=A1=EF=BC=8C=E7=AC=AC=E4=BA=8C=E6=AC=A1index=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=87=AA=E5=8A=A8+1?= 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 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/category/fieldManage/index.vue b/src/views/category/fieldManage/index.vue index 135b11a..93db276 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.form.isSequence) { + if (this.crud.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 130e926..97a6dcf 100644 --- a/src/views/components/field/index.vue +++ b/src/views/components/field/index.vue @@ -41,7 +41,7 @@ - +