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

@ -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>