Commit d4c29f90 authored by 花裤衩's avatar 花裤衩

perf: import mockXHR only in production

parent bc941118
...@@ -21,10 +21,10 @@ import '@/permission' // permission control ...@@ -21,10 +21,10 @@ import '@/permission' // permission control
* you can execute: mockXHR() * you can execute: mockXHR()
* *
* Currently MockJs will be used in the production environment, * 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') { if (process.env.NODE_ENV === 'production') {
const { mockXHR } = require('../mock')
mockXHR() mockXHR()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment