Commit ac4865ab authored by Pan's avatar Pan

chore: use mockjs in production environment

parent 9793fff1
......@@ -17,12 +17,16 @@ import '@/permission' // permission control
/**
* If you don't want to use mock-server
* you want to use mockjs for request interception
* you can execute:
* you want to use MockJs for mock api
* you can execute: mockXHR()
*
* import { mockXHR } from '../mock'
* mockXHR()
* Currently MockJs will be used in the production environment,
* please remove it before going online! ! !
*/
import { mockXHR } from '../mock'
if (process.env.NODE_ENV === 'production') {
mockXHR()
}
// set ElementUI lang to EN
Vue.use(ElementUI, { locale })
......
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