From ac9f00825c49ba70dcb5f7f9eddda395796693ef Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 27 二月 2024 14:36:52 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/config/routes.ts                               |    5 +++++
 zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx |    8 +++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/zy-asrs-flow/config/routes.ts b/zy-asrs-flow/config/routes.ts
index 914e4f3..cc8e0e9 100644
--- a/zy-asrs-flow/config/routes.ts
+++ b/zy-asrs-flow/config/routes.ts
@@ -24,6 +24,11 @@
         path: '/user/login',
         component: './User/Login/index',
       },
+      {
+        name: 'setting',
+        path: '/user/setting',
+        component: './User/Setting/index',
+      },
     ],
   },
   {
diff --git a/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx b/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
index 6e4c9cb..ea718d8 100644
--- a/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
+++ b/zy-asrs-flow/src/components/RightContent/AvatarDropdown.jsx
@@ -67,10 +67,8 @@
       loginOut();
       return;
     }
-    history.push(`/account/${key}`);
-  },
-    [setInitialState],
-  );
+    history.push(`/user/${key}`);
+  }, [setInitialState]);
 
   const loading = (
     <span className={styles.action}>
@@ -113,7 +111,7 @@
     //   ]
     //   : []),
     {
-      key: 'settings',
+      key: 'setting',
       icon: <SettingOutlined />,
       label: '涓汉璁剧疆',
     },

--
Gitblit v1.9.1