feat(router): mount Landing at / with auth-aware redirect

- / (anonymous) → LandingView
- / (authenticated) → redirects to /dashboard via new meta.redirectIfAuth
- Remove temporary /landing-preview route (Task 2 helper)
- RouteMeta TS augmentation for redirectIfAuth
- LandingView brand link uses router-link (was <a href>, causing SPA reload)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
mini
2026-04-19 21:14:12 +08:00
parent 4832534232
commit 284b5129ac
3 changed files with 22 additions and 12 deletions

View File

@@ -6,10 +6,10 @@
<!-- NAV -->
<nav class="nav">
<div class="container nav-inner">
<a href="/" class="brand">
<router-link to="/" class="brand">
<span class="hex"></span>
<span>PURO AI</span>
</a>
</router-link>
<div class="nav-links">
<a href="#features">产品</a>
<a href="/docs">文档</a>