diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue
index 43f9b69dd..420341e64 100644
--- a/src/layout/Layout.vue
+++ b/src/layout/Layout.vue
@@ -59,7 +59,7 @@ export default defineComponent({
-
+ {/* */}
)
}
diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue
index a5a92da3a..3c03ea7d2 100644
--- a/src/layout/components/UserInfo/src/UserInfo.vue
+++ b/src/layout/components/UserInfo/src/UserInfo.vue
@@ -64,10 +64,10 @@ const toDocument = () => {
{{ t('common.profile') }}
-
+
{{ t('common.loginOut') }}
diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue
index 30a7ab7cc..1998f3827 100644
--- a/src/views/Login/components/LoginForm.vue
+++ b/src/views/Login/components/LoginForm.vue
@@ -15,6 +15,17 @@
+
+
+
+
+
-
+ /> -->
diff --git a/src/views/Profile/Index.vue b/src/views/Profile/Index.vue
index b05f93ccb..e813f0435 100644
--- a/src/views/Profile/Index.vue
+++ b/src/views/Profile/Index.vue
@@ -22,9 +22,9 @@
-
+
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index a0e685861..5487729e5 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -84,6 +84,7 @@ import { handleTree } from '@/utils/tree'
import * as MenuApi from '@/api/system/menu'
import MenuForm from './MenuForm.vue'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
+import { getInfo } from '@/api/login'
defineOptions({ name: 'SystemMenu' })
@@ -107,6 +108,9 @@ const getList = async () => {
try {
const data = await MenuApi.getMenuList(queryParams)
list.value = handleTree(data)
+ let userInfo = await getInfo()
+ wsCache.set(CACHE_KEY.USER, userInfo)
+ wsCache.set(CACHE_KEY.ROLE_ROUTERS, userInfo.menus)
} finally {
loading.value = false
}