|
|
@@ -159,7 +159,7 @@
|
|
|
|
|
|
<script setup lang="js">
|
|
|
import { ref, computed, onMounted, onUnmounted, watch } from 'vue';
|
|
|
-import { onPullDownRefresh } from '@dcloudio/uni-app';
|
|
|
+import { onShow, onPullDownRefresh } from '@dcloudio/uni-app';
|
|
|
import CustomTabbar from '../../components/custom-tabbar/custom-tabbar.vue';
|
|
|
import { getPositionList, dislikePosition, dislikeCompany } from '../../api/position.js';
|
|
|
|
|
|
@@ -197,7 +197,6 @@ const loadDicts = () => {
|
|
|
jobTypeTabs.value = ['全部岗位', '全职', '实习', '兼职'];
|
|
|
jobTypeValue.value = ['', '0', '1', '2'];
|
|
|
}
|
|
|
- fetchJobs(true);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
@@ -404,6 +403,10 @@ onPullDownRefresh(async () => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
|
|
|
+onShow(() => {
|
|
|
+ fetchJobs(true);
|
|
|
+});
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
// 监听筛选页面发回的数据并重新请求
|
|
|
uni.$on('updateFilters', (params) => {
|