vite 模式下 store 重定位问题
Open
v2
- Dominant language
- TypeScript
- Stars
- 18.6k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
routes.ts 文件中如果通过如下方式引入,将导致 store Provider 的重定向逻辑失败
```diff
-import Preview from './pages/preview';
+import Preview from '@/pages/preview';
```
Contributor guide
Research direction
Start by reproducing the store Provider redirection failure in vite mode using the import change shown in routes.ts. Compare the relative and @/ alias imports, then verify that the store Provider redirect logic works with the alias form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100