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

添加的【注册结果页】 模板 代码运行不起来 #49

Closed
ghost opened this issue Apr 2, 2020 · 3 comments
Closed

添加的【注册结果页】 模板 代码运行不起来 #49

ghost opened this issue Apr 2, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 2, 2020

我在 umi ui里 资产=》模板=》用户=》 注册结果页 添加后

然后 运行出错了

位于 UserRegisterResult/index.tsx 中的
import { FormattedMessage, formatMessage, Link } from 'umi';

这句代码出错

里面没有 FormattedMessage 和 formatMessage

@chenshuai2144
Copy link
Collaborator

你是 umi@3 吗?这个是 umi@3 的时候支持的。或者你没打开 umi-locale

@ghost
Copy link
Author

ghost commented Apr 2, 2020

@chenshuai2144

是的 我是umi3

@ghost
Copy link
Author

ghost commented Apr 2, 2020

解决了,

添加模块的时候, 把 移除国际化 选上就行了
image

This issue was closed.
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