We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
修改了环境变量里的VUE_APP_BASE_API之后会影响mock吗?为什么我修改成本地服务器的url之后mockserver就拦截不到请求了
The text was updated successfully, but these errors were encountered:
可以在mock目录自行修改
比如改成:
const mocks = [ ...user, // ...role, // ...article, // ...search ]
Sorry, something went wrong.
https://hooray.gitee.io/fantastic-admin/guide/mock.html 可以看下我的实现思路,mock与真实接口共存其实就是通过代理分别解析url,把需要mock的转发到本地,把不需要mock的转发到真实接口
自己根据前缀区分就行啊/api对应真实 /api-mock对应mock
No branches or pull requests
修改了环境变量里的VUE_APP_BASE_API之后会影响mock吗?为什么我修改成本地服务器的url之后mockserver就拦截不到请求了
env
network
mock/user.js:
api/user.js:
The text was updated successfully, but these errors were encountered: