Feature: 将单组件管理修改为路由模式
This commit is contained in:
13
src/pages/calculators/belt-specification.vue
Normal file
13
src/pages/calculators/belt-specification.vue
Normal 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>
|
||||
13
src/pages/calculators/multi-layer-paper-tape-width-angle.vue
Normal file
13
src/pages/calculators/multi-layer-paper-tape-width-angle.vue
Normal 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>
|
||||
13
src/pages/calculators/paper-roll-weight-length.vue
Normal file
13
src/pages/calculators/paper-roll-weight-length.vue
Normal 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>
|
||||
13
src/pages/calculators/paper-tape-width-angle.vue
Normal file
13
src/pages/calculators/paper-tape-width-angle.vue
Normal 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>
|
||||
13
src/pages/calculators/paper-tube-production.vue
Normal file
13
src/pages/calculators/paper-tube-production.vue
Normal 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>
|
||||
13
src/pages/calculators/paper-tube-weight.vue
Normal file
13
src/pages/calculators/paper-tube-weight.vue
Normal 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>
|
||||
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user