|
@@ -61,7 +61,7 @@ onMounted(async () => {
|
|
|
})
|
|
|
|
|
|
const current = ref(0)
|
|
|
-const tabList = ['职位推荐', '条件筛选']
|
|
|
+const tabList = ['人才推荐', '条件筛选']
|
|
|
const useUserStore = userStore()
|
|
|
|
|
|
// 获取轮播图
|
|
@@ -74,6 +74,9 @@ const getSystemWebContent = async () => {
|
|
|
// 职位列表
|
|
|
const jobList = ref([])
|
|
|
const getJobList = async () => {
|
|
|
+ if (!useUserStore.refreshToken || uni.getStorageSync('isPersonalToken')) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const { data } = await getJobAdvertised({ status: 0, exTime: 0 })
|
|
|
if (data.length) {
|
|
|
jobList.value = data.map(e => {
|
|
@@ -83,9 +86,7 @@ const getJobList = async () => {
|
|
|
}
|
|
|
|
|
|
watch(() => useUserStore.refreshToken, () => {
|
|
|
- if (useUserStore.refreshToken && !uni.getStorageSync('isPersonalToken')) {
|
|
|
- getJobList()
|
|
|
- }
|
|
|
+ getJobList()
|
|
|
}, { immediate: true })
|
|
|
|
|
|
onShow(() => {
|
|
@@ -99,6 +100,7 @@ onShow(() => {
|
|
|
currentTabBar?.setData({ selected: 0 })
|
|
|
|
|
|
if (!getAccessToken()) return showAuthModal()
|
|
|
+ else getJobList()
|
|
|
})
|
|
|
|
|
|
const changeControl = (e) =>{
|