style(web): 统一后台图标与全局视觉
This commit is contained in:
1 parent
5c087f4db9
commit
97fbeda508
67 files changed
+737
-744
No files matched your search
@@ -3,17 +3,9 @@
|
||||
import { computed, onMounted, reactive, ref } from 'vue'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { createMenuApi, deleteMenuApi, getMenuTreeApi, updateMenuApi } from '@/api/admin/role'
|
||||
import { MenuIconOptions, normalizeAppIcon } from '@/constants/icons'
|
||||
|
||||
export const menuIconNames = [
|
||||
'Document',
|
||||
'DataAnalysis',
|
||||
'Picture',
|
||||
'User',
|
||||
'Setting',
|
||||
'VideoCamera',
|
||||
'Menu',
|
||||
'Grid'
|
||||
]
|
||||
export const menuIconNames = MenuIconOptions
|
||||
|
||||
/** 菜单管理:直接读写后端 sys_menu,变更后重新登录生效。 */
|
||||
export function useMenuManagement() {
|
||||
@@ -101,7 +93,7 @@ export function useMenuManagement() {
|
||||
routePath: raw.path || '',
|
||||
routeName: raw.name || '',
|
||||
component: raw.component === '#' ? '' : raw.component || '',
|
||||
icon: raw.icon || '',
|
||||
icon: normalizeAppIcon(raw.icon),
|
||||
permissionCode: raw.permissionCode || '',
|
||||
type: raw.type || 'MENU',
|
||||
sort: raw.sort ?? 1,
|
||||
@@ -121,7 +113,7 @@ export function useMenuManagement() {
|
||||
routePath: form.routePath.trim(),
|
||||
routeName: form.routeName.trim(),
|
||||
component: form.type === 'CATALOG' ? '#' : form.component.trim(),
|
||||
icon: form.icon,
|
||||
icon: form.type === 'BUTTON' ? '' : normalizeAppIcon(form.icon),
|
||||
permissionCode: form.permissionCode.trim(),
|
||||
type: form.type,
|
||||
sort: Number(form.sort) || 1,
|
||||
|
||||
Reference in new issue
Block a user