style(web): 统一辣椒红主色与菜单层级
This commit is contained in:
1 parent
3e8312ea58
commit
ba90bf9bfb
11 files changed
+185
-40
No files matched your search
@@ -75,7 +75,7 @@ const { treeData, loading, form, parentOptions, resetForm, selectNode, saveMenu,
|
||||
<el-form-item label="权限标识">
|
||||
<el-input v-model="form.permissionCode" placeholder="例如 drama:list" />
|
||||
</el-form-item>
|
||||
<el-form-item v-if="form.type !== 'BUTTON'" label="菜单图标">
|
||||
<el-form-item v-if="form.type === 'CATALOG'" label="菜单图标">
|
||||
<el-select v-model="form.icon" clearable placeholder="请选择">
|
||||
<el-option v-for="icon in menuIconNames" :key="icon" :label="icon" :value="icon" />
|
||||
</el-select>
|
||||
|
||||
@@ -93,7 +93,7 @@ export function useMenuManagement() {
|
||||
routePath: raw.path || '',
|
||||
routeName: raw.name || '',
|
||||
component: raw.component === '#' ? '' : raw.component || '',
|
||||
icon: normalizeAppIcon(raw.icon),
|
||||
icon: raw.type === 'CATALOG' ? normalizeAppIcon(raw.icon) : '',
|
||||
permissionCode: raw.permissionCode || '',
|
||||
type: raw.type || 'MENU',
|
||||
sort: raw.sort ?? 1,
|
||||
@@ -113,7 +113,7 @@ export function useMenuManagement() {
|
||||
routePath: form.routePath.trim(),
|
||||
routeName: form.routeName.trim(),
|
||||
component: form.type === 'CATALOG' ? '#' : form.component.trim(),
|
||||
icon: form.type === 'BUTTON' ? '' : normalizeAppIcon(form.icon),
|
||||
icon: form.type === 'CATALOG' ? normalizeAppIcon(form.icon) : '',
|
||||
permissionCode: form.permissionCode.trim(),
|
||||
type: form.type,
|
||||
sort: Number(form.sort) || 1,
|
||||
|
||||
Reference in new issue
Block a user