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

[Bug] umi3.x如何生产环境使用mock #12009

Closed
Yokee-X opened this issue Dec 27, 2023 · 2 comments
Closed

[Bug] umi3.x如何生产环境使用mock #12009

Yokee-X opened this issue Dec 27, 2023 · 2 comments

Comments

@Yokee-X
Copy link

Yokee-X commented Dec 27, 2023

umi3.x如何在生产环境使用mock数据?

想在生产环境上做演示,请求接口报错,而是请求资源的形式

Copy link

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
@fz6m
Copy link
Contributor

fz6m commented Dec 29, 2023

要不你把 mock 数据的逻辑抽取出来一起复用,在演示的时候起一个 express 服务提供 mock 接口就行。

umi 3 不维护了,建议升级到 umi 4 。

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

No branches or pull requests

2 participants