Feature: 将单组件管理修改为路由模式
This commit is contained in:
@ -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