diff --git a/frontend/src/main.js b/frontend/src/main.js index 2dd52c1fd6..9d333f1043 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -41,9 +41,18 @@ Vue.use(vcolorpicker) import fullscreen from 'vue-fullscreen' Vue.use(fullscreen) -// if (process.env.NODE_ENV === 'production') { - -// } +/** + * If you don't want to use mock-server + * 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 ! ! ! + */ +if (process.env.NODE_ENV === 'production') { +// const { mockXHR } = require('../mock') +// mockXHR() +} // set ElementUI lang to EN // Vue.use(ElementUI, { locale })