code review:优惠劵逻辑

This commit is contained in:
YunaiV
2023-09-02 00:12:21 +08:00
parent 190c6e384c
commit 4f7d6793fd
6 changed files with 55 additions and 49 deletions

View File

@@ -24,7 +24,7 @@ const props = defineProps({
multiple: propTypes.bool.def(false) // 是否多选
})
/** 选中的分类ID */
/** 选中的分类 ID */
const selectCategoryId = computed({
get: () => {
return props.value
@@ -37,8 +37,8 @@ const selectCategoryId = computed({
/** 分类选择 */
const emit = defineEmits(['update:modelValue'])
/** 初始化 **/
const categoryList = ref([]) // 分类树
onMounted(async () => {
// 获得分类树
const data = await ProductCategoryApi.getCategoryList({})