iview / iview/iview-admin

路由设置为history模式的时候产生许多问题

Open
#460 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description

1.history模式进入某个页面刷新浏览器产生not get/... 的情况
2.history模式下在进入的页面不是home的情况下刷新页面themeSwitch设置的主题颜色恢复为默认的蓝色肢体,再次回到home路径下刷新页面的时候主题样式恢复正常

这一块有没有好的解决办法呢

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two history-mode cases described: refreshing a non-home page and checking whether themeSwitch styling persists after refresh. Inspect the routing and themeSwitch handling, then verify that direct refreshes and theme colors remain correct on both home and non-home routes.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.