diff --git a/packageA/pages/post/component/radarMap.vue b/packageA/pages/post/component/radarMap.vue index 0d7084e..df7be4c 100644 --- a/packageA/pages/post/component/radarMap.vue +++ b/packageA/pages/post/component/radarMap.vue @@ -28,9 +28,12 @@ watch( () => props.value, (newVal) => { if (newVal && Object.keys(newVal).length > 0) { - const { skill, experience, education, salary, age, location } = newVal.radarChart; - const labels = ['学历', '年龄', '工作地', '技能', '工作经验', '期望薪资']; - const data = [education, age, location, skill, experience, salary].map((item) => item * 0.05); + // const { skill, experience, education, salary, age, location } = newVal.radarChart; + const { experience, education, salary, age, location } = newVal.radarChart; + // const labels = ['学历', '年龄', '工作地', '技能', '工作经验', '期望薪资']; + const labels = ['学历', '年龄', '工作地', '工作经验', '期望薪资']; + // const data = [education, age, location, skill, experience, salary].map((item) => item * 0.05); + const data = [education, age, location, experience, salary].map((item) => item * 0.05); rawRadarChart(labels, data); } },