Feature: 将单组件管理修改为路由模式

This commit is contained in:
2025-07-16 14:50:01 +08:00
parent 228f1ddcac
commit bed128a0ba
13 changed files with 402 additions and 339 deletions

View File

@ -0,0 +1,13 @@
<template>
<BeltSpecificationCalculate />
</template>
<script lang="ts" setup>
import BeltSpecificationCalculate from '@/components/Modules/BeltSpecificationCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: beltSpecification
</route>

View File

@ -0,0 +1,13 @@
<template>
<MultiLayerPaperTapeWidthAngleCalculate />
</template>
<script lang="ts" setup>
import MultiLayerPaperTapeWidthAngleCalculate from '@/components/Modules/MultiLayerPaperTapeWidthAngleCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: multiLayerPaperTapeWidthAngle
</route>

View File

@ -0,0 +1,13 @@
<template>
<PaperRollWeightLengthCalculate />
</template>
<script lang="ts" setup>
import PaperRollWeightLengthCalculate from '@/components/Modules/PaperRollWeightLengthCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: paperRollWeightLength
</route>

View File

@ -0,0 +1,13 @@
<template>
<PaperTapeWidthAngleCalculate />
</template>
<script lang="ts" setup>
import PaperTapeWidthAngleCalculate from '@/components/Modules/PaperTapeWidthAngleCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: paperTapeWidthAngle
</route>

View File

@ -0,0 +1,13 @@
<template>
<PaperTubeProductionCalculate />
</template>
<script lang="ts" setup>
import PaperTubeProductionCalculate from '@/components/Modules/PaperTubeProductionCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: paperTubeProduction
</route>

View File

@ -0,0 +1,13 @@
<template>
<PaperTubeWeightCalculate />
</template>
<script setup lang="ts">
import PaperTubeWeightCalculate from '@/components/Modules/PaperTubeWeightCalculate.vue'
</script>
<route lang="yaml">
meta:
layout: CalculatorLayout
title: paperTubeWeight
</route>

View File

@ -1,6 +1,15 @@
<template>
<HelloWorld />
<div>Redirecting...</div>
</template>
<script lang="ts" setup>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
onMounted(() => {
// Redirect to the calculators page
router.push('/calculators/paper-tube-weight')
})
</script>