ソースを参照

延迟查询可发布职位数量

lifanagju_citu 1 ヶ月 前
コミット
6ebb5489c7
1 ファイル変更4 行追加2 行削除
  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)