File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/views/mall/product/spu/form Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 83
83
"editor.defaultFormatter" : " esbenp.prettier-vscode"
84
84
},
85
85
"editor.codeActionsOnSave" : {
86
- "source.fixAll.eslint" : true
86
+ "source.fixAll.eslint" : " explicit "
87
87
},
88
88
"[vue]" : {
89
89
"editor.defaultFormatter" : " rvest.vs-code-prettier-eslint"
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ defineOptions({ name: 'ProductSpuBasicInfoForm' })
197
197
const ruleConfig: RuleConfig [] = [
198
198
{
199
199
name: ' stock' ,
200
- rule : (arg ) => arg >= 1 ,
200
+ rule : (arg ) => arg >= 0 ,
201
201
message: ' 商品库存必须大于等于 1 !!!'
202
202
},
203
203
{
@@ -213,7 +213,7 @@ const ruleConfig: RuleConfig[] = [
213
213
{
214
214
name: ' costPrice' ,
215
215
rule : (arg ) => arg >= 0.01 ,
216
- message: ' 商品成本价格必须大于等于 0.01 元!!!'
216
+ message: ' 商品成本价格必须大于等于 0.00 元!!!'
217
217
}
218
218
]
219
219
You can’t perform that action at this time.
0 commit comments