Skip to content

请在文档中明示代码默认使用mock数据 #7

Description

@mooncake020

/import { mockXHR } from '../mock'
if (process.env.NODE_ENV === 'production') {
mockXHR()
}
/
另外为什么在生产环境调用mock数据?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions