= 职业规划推荐

This commit is contained in:
2026-01-22 16:46:45 +08:00
parent 4dce6d3e39
commit e0efa9c1cf
3 changed files with 54 additions and 27 deletions

View File

@@ -69,7 +69,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
try {
const { code, msg, data } = await getProfessions();
if (code !== 0) {
$emitter.emit('error-message', msg);
uni.showToast({
title: msg,
icon: 'none'
});
return;
}
if (!data) {
@@ -93,7 +96,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
try {
const { code, msg, data } = await getSkillTags(params);
if (code !== 0) {
$emitter.emit('error-message', msg);
uni.showToast({
title: msg,
icon: 'none'
});
return;
}
if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) {
@@ -111,7 +117,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
try {
const { code, msg, data } = await getRecommend(params);
if (code !== 0) {
$emitter.emit('error-message', msg);
uni.showToast({
title: msg,
icon: 'none'
});
return;
}
if (!data) {