=【职业图谱】职业推荐 - 携参跳转
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { computed, ref, watch, inject } from 'vue';
|
||||
import { defineStore, storeToRefs } from 'pinia';
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
import { getProfessions, getRecommend, getSkillTags } from '@/apiRc/service/careerRecommendation';
|
||||
|
||||
|
||||
export const useCareerRecommendationStore = defineStore('career-recommendation', () => {
|
||||
const { navTo } = inject('globalFunction');
|
||||
const { userInfo: ui } = storeToRefs(useUserStore());
|
||||
const userInfo = ref({
|
||||
userName: '',
|
||||
@@ -161,6 +162,11 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
||||
|
||||
void fetchData();
|
||||
|
||||
const eventJobSearch = (job) => {
|
||||
console.log(job);
|
||||
navTo('/pages/search/search?job=' + job.title);
|
||||
};
|
||||
|
||||
watch(
|
||||
() => profession.value,
|
||||
() => {
|
||||
@@ -192,6 +198,7 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
||||
skillTags,
|
||||
result,
|
||||
eventProfession,
|
||||
eventSearch
|
||||
eventSearch,
|
||||
eventJobSearch
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user