diff --git a/src/main.js b/src/main.js index 8196ab8..289a044 100644 --- a/src/main.js +++ b/src/main.js @@ -63,13 +63,13 @@ Vue.use(selectscroll); * you want to use MockJs for mock api * you can execute: mockXHR() * - * Currently MockJs will be used in the production environment, - * please remove it before going online ! ! ! + * Currently MockJs will be used in the development environment only, + * it's disabled in production */ -if (process.env.NODE_ENV === 'production') { +if (process.env.NODE_ENV === 'development') { const { mockXHR - } = require('../mock') + } = require('../../mock') mockXHR() }