feat:不展示文档、展示角色名称
This commit is contained in:
@@ -41,15 +41,15 @@ const { destroyWatermark, updateWatermark } = useWatermark();
|
||||
const tenantStore = useTenantStore();
|
||||
const menus = computed(() => {
|
||||
const defaultMenus = [
|
||||
{
|
||||
handler: () => {
|
||||
openWindow(VBEN_DOC_URL, {
|
||||
target: '_blank',
|
||||
});
|
||||
},
|
||||
icon: BookOpenText,
|
||||
text: $t('ui.widgets.document'),
|
||||
},
|
||||
// {
|
||||
// handler: () => {
|
||||
// openWindow(VBEN_DOC_URL, {
|
||||
// target: '_blank',
|
||||
// });
|
||||
// },
|
||||
// icon: BookOpenText,
|
||||
// text: $t('ui.widgets.document'),
|
||||
// },
|
||||
{
|
||||
handler: () => {
|
||||
router.push('/profile');
|
||||
@@ -146,7 +146,7 @@ watch(
|
||||
:avatar
|
||||
:menus
|
||||
:text="userStore.userInfo?.realName"
|
||||
:description="userStore.userInfo?.roles[0]"
|
||||
:description="userStore.userInfo?.roleName"
|
||||
tag-text="Pro"
|
||||
@logout="handleLogout"
|
||||
/>
|
||||
|
@@ -116,6 +116,7 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
roles,
|
||||
userId: user.userId,
|
||||
username: user.userName,
|
||||
roleName:user.roles[0]?.roleName,
|
||||
}
|
||||
userStore.setUserInfo(userInfo)
|
||||
|
||||
|
Reference in New Issue
Block a user