Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history配置问题 #142

Open
mazhy opened this issue Jul 27, 2019 · 1 comment
Open

history配置问题 #142

mazhy opened this issue Jul 27, 2019 · 1 comment

Comments

@mazhy
Copy link

mazhy commented Jul 27, 2019

要去掉丑陋的# 通过改配置不生效, // history: 'browser', 具体应该怎么配置

@mazhy
Copy link
Author

mazhy commented Jul 27, 2019

解决了
import { createBrowserHistory as createHistory } from 'history'

export const dva = {
config: {
history: createHistory(),
onError(err) {
err.preventDefault();
console.error(err.message);
},
},
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant