File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/views/mall/promotion/rewardActivity Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 56
56
label =" 分类"
57
57
prop =" productCategoryIds"
58
58
>
59
- <ProductCategorySelect v-model =" formData.productCategoryIds" />
59
+ <ProductCategorySelect v-model =" formData.productCategoryIds" :multiple = " true " />
60
60
</el-form-item >
61
61
<el-form-item label =" 备注" prop =" remark" >
62
62
<el-input v-model =" formData.remark" placeholder =" 请输入备注" />
@@ -188,7 +188,7 @@ const getProductScope = async () => {
188
188
case PromotionProductScopeEnum .CATEGORY .scope :
189
189
await nextTick ()
190
190
let productCategoryIds = formData .value .productScopeValues as any
191
- if (Array .isArray (productCategoryIds ) && productCategoryIds .length > 0 ) {
191
+ if (Array .isArray (productCategoryIds ) && productCategoryIds .length === 1 ) {
192
192
// 单选时使用数组不能反显
193
193
productCategoryIds = productCategoryIds [0 ]
194
194
}
You can’t perform that action at this time.
0 commit comments