|
|
@@ -90,7 +90,12 @@ defineOptions({ name: 'ScoreRadar' })
|
|
90
|
90
|
const router = useRouter()
|
|
91
|
91
|
|
|
92
|
92
|
function goToPortrait(personName) {
|
|
93
|
|
- router.push({ name: 'EmployeeProfile', query: { personName } })
|
|
|
93
|
+ const target = router.getRoutes().find(r => /[/]employeeProfile$/.test(r.path))
|
|
|
94
|
+ if (target) {
|
|
|
95
|
+ router.push({ path: target.path, query: { personName } })
|
|
|
96
|
+ } else {
|
|
|
97
|
+ ElMessage.warning('未找到员工画像页面,请确认菜单中已配置该页面')
|
|
|
98
|
+ }
|
|
94
|
99
|
}
|
|
95
|
100
|
|
|
96
|
101
|
// ── 状态 ──────────────────────────────────────────────
|