improvement
This commit is contained in:
parent
187cca127f
commit
e9fe4a3cb9
|
@ -212,6 +212,7 @@ async function togglePinned(item, event) {
|
||||||
clickable
|
clickable
|
||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
:label="t(item.title)"
|
:label="t(item.title)"
|
||||||
|
:content-inset-level="0.5"
|
||||||
>
|
>
|
||||||
<LeftMenuItemGroup :item="item" />
|
<LeftMenuItemGroup :item="item" />
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
|
|
|
@ -352,7 +352,7 @@ export default {
|
||||||
meta: {
|
meta: {
|
||||||
title: 'creditManagement',
|
title: 'creditManagement',
|
||||||
icon: 'paid',
|
icon: 'paid',
|
||||||
children: [
|
menuChildren: [
|
||||||
{
|
{
|
||||||
name: 'CustomerCreditContracts',
|
name: 'CustomerCreditContracts',
|
||||||
title: 'creditContracts',
|
title: 'creditContracts',
|
||||||
|
|
|
@ -52,9 +52,9 @@ export const useNavigationStore = defineStore('navigationStore', () => {
|
||||||
|
|
||||||
function addMenuItem(module, route, parent) {
|
function addMenuItem(module, route, parent) {
|
||||||
const { meta } = route;
|
const { meta } = route;
|
||||||
let { children = null } = meta;
|
let { menuChildren = null } = meta;
|
||||||
if (children)
|
if (menuChildren)
|
||||||
children = children.map(({ name, title, icon }) => ({
|
menuChildren = menuChildren.map(({ name, title, icon }) => ({
|
||||||
name,
|
name,
|
||||||
icon,
|
icon,
|
||||||
title: `${module}.pageTitles.${title}`,
|
title: `${module}.pageTitles.${title}`,
|
||||||
|
@ -64,7 +64,7 @@ export const useNavigationStore = defineStore('navigationStore', () => {
|
||||||
|
|
||||||
const item = {
|
const item = {
|
||||||
name: route.name,
|
name: route.name,
|
||||||
children: children,
|
children: menuChildren,
|
||||||
};
|
};
|
||||||
if (meta) {
|
if (meta) {
|
||||||
item.title = `${module}.pageTitles.${meta.title}`;
|
item.title = `${module}.pageTitles.${meta.title}`;
|
||||||
|
|
Loading…
Reference in New Issue