alibaba / alibaba/ice

vite 模式下 store 重定位问题

Open
#5,329 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.