Browse Source

延迟查询可发布职位数量

lifanagju_citu 1 tháng trước cách đây
mục cha
commit
6ebb5489c7
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      pages/index/position.vue

+ 4 - 2
pages/index/position.vue

@@ -72,7 +72,6 @@ const tab = ref(1)
 const navbarHeight = ref(uni.getStorageSync('navbarHeight'))
 
 onLoad((options) => {
-  console.log('onLoad:', options)
   if (options?.tab) tab.value = Number(options?.tab)
 })
 
@@ -139,7 +138,10 @@ onShow(() => {
   // 设置当前tab页的下标index
   currentTabBar?.setData({ selected: 1 })
   init()
-  getPublishJobCount()
+  // 延迟查询可发布职位数量
+  setTimeout(() => {
+    getPublishJobCount()
+  }, 1000)
 })
 
 const publishJobCount = ref(0)