提交 d4c29f90 编写于 作者: 花裤衩's avatar 花裤衩

perf: import mockXHR only in production

上级 bc941118
......@@ -21,10 +21,10 @@ import '@/permission' // permission control
* you can execute: mockXHR()
*
* Currently MockJs will be used in the production environment,
* please remove it before going online! ! !
* please remove it before going online ! ! !
*/
import { mockXHR } from '../mock'
if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('../mock')
mockXHR()
}
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或