mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 03:09:19 +08:00
feat: 添加个人信息编辑页面
- 创建 /system/profile 路由 - 创建个人信息编辑页面,支持编辑姓名、手机号、备注 - 支持上传头像 - 用户下拉菜单添加"个人信息"入口
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
} from '@vben/layouts';
|
||||
import { preferences } from '@vben/preferences';
|
||||
import { useAccessStore, useUserStore } from '@vben/stores';
|
||||
import { openWindow } from '@vben/utils';
|
||||
import { openWindow, navigateTo } from '@vben/utils';
|
||||
|
||||
import ImportTaskButton from '#/components/ImportTaskButton.vue';
|
||||
import SwitchAccountModal from '#/components/SwitchAccountModal.vue';
|
||||
@@ -74,10 +74,21 @@ const switchAccountModalRef = ref();
|
||||
|
||||
// 切换账户图标
|
||||
const SwitchAccountIcon = createIconifyIcon('lucide:arrow-left-right');
|
||||
// 用户图标
|
||||
const UserIcon = createIconifyIcon('lucide:user');
|
||||
|
||||
const menus = computed(() => {
|
||||
const menuItems = [];
|
||||
|
||||
// 个人信息
|
||||
menuItems.push({
|
||||
handler: () => {
|
||||
navigateTo('/system/profile');
|
||||
},
|
||||
icon: UserIcon,
|
||||
text: '个人信息',
|
||||
});
|
||||
|
||||
// 只有超级管理员才显示切换账户功能
|
||||
if (accessStore.userRole === 'super') {
|
||||
menuItems.push({
|
||||
|
||||
Reference in New Issue
Block a user