diff --git a/src/pages-sub/home/autoFill/index.vue b/src/pages-sub/home/autoFill/index.vue index fe0cc7d..8338459 100644 --- a/src/pages-sub/home/autoFill/index.vue +++ b/src/pages-sub/home/autoFill/index.vue @@ -82,6 +82,7 @@ const show = ref(false) const badgeValue = ref(1) const close = () => { + filterMenuRef.value.clearForm() show.value = false } diff --git a/src/pages-sub/home/components/FilterMenu.vue b/src/pages-sub/home/components/FilterMenu.vue index f30a062..943a549 100644 --- a/src/pages-sub/home/components/FilterMenu.vue +++ b/src/pages-sub/home/components/FilterMenu.vue @@ -140,8 +140,16 @@ const handleConfirm = () => { } } +const clearForm = () => { + defaultCollegeFeature.value = [] + defaultUniType.value = [] + defaultNature.value = [] + defaultRegion.value = [] +} + defineExpose({ handleConfirm, + clearForm, }) diff --git a/src/pages-sub/home/wishesList/components/SortMajor.vue b/src/pages-sub/home/wishesList/components/SortMajor.vue index 41ee505..b52aebc 100644 --- a/src/pages-sub/home/wishesList/components/SortMajor.vue +++ b/src/pages-sub/home/wishesList/components/SortMajor.vue @@ -26,7 +26,6 @@ - {{ score }} diff --git a/src/pages-sub/home/wishesList/temp.vue b/src/pages-sub/home/wishesList/temp.vue new file mode 100644 index 0000000..ea1ae39 --- /dev/null +++ b/src/pages-sub/home/wishesList/temp.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/pages-sub/home/wishesList/wishesList.vue b/src/pages-sub/home/wishesList/wishesList.vue index 166f3d0..cdf6263 100644 --- a/src/pages-sub/home/wishesList/wishesList.vue +++ b/src/pages-sub/home/wishesList/wishesList.vue @@ -8,9 +8,8 @@ diff --git a/src/pages-sub/ucenter/wishList/wishList.vue b/src/pages-sub/ucenter/wishList/wishList.vue index 60b068c..13f7acb 100644 --- a/src/pages-sub/ucenter/wishList/wishList.vue +++ b/src/pages-sub/ucenter/wishList/wishList.vue @@ -7,12 +7,13 @@