fix
This commit is contained in:
@@ -41,6 +41,11 @@ const reset = () => {
|
||||
getListingListData.isShowMark = false
|
||||
getListingListData.isNoData = false
|
||||
}
|
||||
const clearData = () => {
|
||||
commodityList.value = []
|
||||
getListingListData.pageNum = 1
|
||||
getListingListData.isNoData = true
|
||||
}
|
||||
|
||||
const getListingMallList = ()=>{
|
||||
getListingListData.isShowMark = true
|
||||
@@ -86,7 +91,7 @@ onMounted(()=>{
|
||||
})
|
||||
onUnmounted(()=>{
|
||||
})
|
||||
defineExpose({reset,commodityList,getListingListData})
|
||||
defineExpose({reset,clearData,commodityList,getListingListData})
|
||||
const {} = toRefs(data);
|
||||
</script>
|
||||
<template>
|
||||
|
||||
@@ -56,7 +56,11 @@ const openDetail = (item) => {
|
||||
const handleChange = (val) => {
|
||||
categories.value = val.categories
|
||||
gender.value = val.gender
|
||||
commodityListRef.value.reset()
|
||||
if(categories.value.length == 0 || gender.value.length == 0){
|
||||
commodityListRef.value.clearData()
|
||||
}else{
|
||||
commodityListRef.value.reset()
|
||||
}
|
||||
}
|
||||
const updateSort = () => {
|
||||
commodityListRef.value.reset()
|
||||
|
||||
Reference in New Issue
Block a user