From ccaa10f25b52c9c9f975e8ac925fc9f48342451d Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 16 Jul 2025 14:48:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/navigation.ts | 33 +++++++++++++++++++++++++ src/layouts/CalculatorLayout.vue | 41 ++++++++++---------------------- src/layouts/default.vue | 1 - 3 files changed, 45 insertions(+), 30 deletions(-) create mode 100644 src/config/navigation.ts diff --git a/src/config/navigation.ts b/src/config/navigation.ts new file mode 100644 index 0000000..0d4c494 --- /dev/null +++ b/src/config/navigation.ts @@ -0,0 +1,33 @@ +export interface NavigationItem { + title: string + to: string + icon?: string + component?: string +} + +export const navigationConfig: NavigationItem[] = [ + { + title: 'paperTubeWeightCalculate', + to: '/calculators/paper-tube-weight', + }, + { + title: 'beltSpecificationCalculate', + to: '/calculators/belt-specification', + }, + { + title: 'paperRollWeightLengthCalculate', + to: '/calculators/paper-roll-weight-length', + }, + { + title: 'paperTubeProductionCalculate', + to: '/calculators/paper-tube-production', + }, + { + title: 'paperTapeWidthAngleCalculate', + to: '/calculators/paper-tape-width-angle', + }, + { + title: 'multiLayerPaperTapeWidthAngleCalculate', + to: '/calculators/multi-layer-paper-tape-width-angle', + }, +] diff --git a/src/layouts/CalculatorLayout.vue b/src/layouts/CalculatorLayout.vue index 53588a3..a45e502 100644 --- a/src/layouts/CalculatorLayout.vue +++ b/src/layouts/CalculatorLayout.vue @@ -133,9 +133,11 @@ class="pa-6" fluid /> - - - + + + + + @@ -156,6 +158,7 @@