!343 优化:商品库存为0时,商品列表商品封面显示已售罄,商品详情页用户无法下单

Merge pull request !343 from 奕泽云/master
This commit is contained in:
芋道源码 2023-12-06 12:16:28 +00:00 committed by Gitee
commit 1e6ceabd3b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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 元!!!'
}
]