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

Yapi结合前端项目的使用 #24

Open
mominger opened this issue May 29, 2020 · 0 comments
Open

Yapi结合前端项目的使用 #24

mominger opened this issue May 29, 2020 · 0 comments

Comments

@mominger
Copy link
Owner

针对每个项目模块设置一个环境前缀

  • 点击进入项目模块
    mk_chart
  • 设置环境
    env_chart
  • 观察接口
    see_chart

设置一个模块请求前缀

  • mock.config.js 配置
    mock_config
  • 模块请求js里配置请求
    mk_req
  • 用法
    user_chart

启动环境

  • uniapp下 启动H5或微信 npm run mock:h5 npm run mock:mp-weixin
  • mock => dev => test => prd 总共4个环境,通过配置文档,env启动,平滑切换
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