@@ -146,7 +146,9 @@ const toHelp = () => {
}
// 个人中心
const toCenter = () => {
- router.push({ path: `/center/basic` })
+ const role = user.value.role.find((i) => i === 'Admin')
+ if (role) window.open(`/cxyyAdmin`)
+ else router.push({ path: `/center/basic` })
// 消息
const toChat = () => {