feat: Add SomePage route and component
All checks were successful
CI / cache-and-install (push) Successful in 1m9s

This commit is contained in:
严浩
2024-08-14 10:57:28 +08:00
parent 89c6c6e0dd
commit 1c2a6ced9e
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<template>
<div>
<h1>Some Page</h1>
</div>
</template>
<script setup lang="ts"></script>
<style scoped></style>

1
typed-router.d.ts vendored
View File

@ -20,6 +20,7 @@ declare module 'vue-router/auto-routes' {
export interface RouteNamedMap {
'DataLoadersId': RouteRecordInfo<'DataLoadersId', '/data-loaders/:id', { id: ParamValue<true> }, { id: ParamValue<false> }>,
'IndexPage': RouteRecordInfo<'IndexPage', '/index-page', Record<never, never>, Record<never, never>>,
'SomePage': RouteRecordInfo<'SomePage', '/some-page', Record<never, never>, Record<never, never>>,
'TsEnumUtil': RouteRecordInfo<'TsEnumUtil', '/ts-enum-util', Record<never, never>, Record<never, never>>,
}
}

View File

@ -21,9 +21,11 @@ export default defineConfig(({ mode, command }) => {
base: env.VITE_BASE,
plugins: [
VueRouter({
// https://uvr.esm.is/guide/configuration.html
exclude: ['**/__*', '**/__*/**/*'],
getRouteName: (routeNode) => getPascalCaseRouteName(routeNode),
logs: false,
extensions: ['.vue', '.page.vue', '.md'],
}),
// other plugins
AutoImport({