ZaiZai před 1 rokem
rodič
revize
8c4ac92633
1 změnil soubory, kde provedl 2 přidání a 15 odebrání
  1. 2 15
      src/layout/modules/UserInfoBar.vue

+ 2 - 15
src/layout/modules/UserInfoBar.vue

@@ -67,23 +67,10 @@ const getRefreshToken = () => {
     }, 10000)*/
 }
 
-const options = [
-    {
-        key: 'my',
-        label: '个人中心',
-        icon: 'user-3',
-    },
-    {
-        key: 'logout',
-        label: '退出登录',
-        icon: 'login-box',
-    },
-]
+const options = [{ key: 'logout', label: '退出登录', icon: 'login-box' }]
 
 const handleSelect = (key) => {
-    if (key === 'my') {
-        router.push({ name: 'user-info' })
-    } else if (key === 'logout') {
+    if (key === 'logout') {
         //LogOut().then()
         window.$message?.info('退出成功')
         router.push({ name: 'login' })