zs 8 months ago
parent
commit
a806958114
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/custom/custom-layout.vue

+ 3 - 1
src/components/custom/custom-layout.vue

@@ -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 = () => {