From 7b0ff72a2b5432942cf578353759596e5de5bbda Mon Sep 17 00:00:00 2001 From: ZENGlei11350 <75881401@qq.com> Date: Mon, 4 Dec 2023 13:42:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=97=B60=E5=BA=93=E5=AD=98=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=97=A0=E6=B3=95=E4=BF=9D=E5=AD=98=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit dee8215da238e3c7d15be59729b5303c8b72d29e) --- .vscode/settings.json | 2 +- src/views/mall/product/spu/form/BasicInfoForm.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 34310929..54be7d8c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -83,7 +83,7 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "[vue]": { "editor.defaultFormatter": "rvest.vs-code-prettier-eslint" diff --git a/src/views/mall/product/spu/form/BasicInfoForm.vue b/src/views/mall/product/spu/form/BasicInfoForm.vue index 7f03e877..e40a3ec5 100644 --- a/src/views/mall/product/spu/form/BasicInfoForm.vue +++ b/src/views/mall/product/spu/form/BasicInfoForm.vue @@ -197,7 +197,7 @@ defineOptions({ name: 'ProductSpuBasicInfoForm' }) const ruleConfig: RuleConfig[] = [ { name: 'stock', - rule: (arg) => arg >= 1, + rule: (arg) => arg >= 0, message: '商品库存必须大于等于 1 !!!' }, { @@ -213,7 +213,7 @@ const ruleConfig: RuleConfig[] = [ { name: 'costPrice', rule: (arg) => arg >= 0.01, - message: '商品成本价格必须大于等于 0.01 元!!!' + message: '商品成本价格必须大于等于 0.00 元!!!' } ]