提交 ac4865ab 编写于 作者: Pan's avatar Pan

chore: use mockjs in production environment

上级 9793fff1
...@@ -17,12 +17,16 @@ import '@/permission' // permission control ...@@ -17,12 +17,16 @@ import '@/permission' // permission control
/** /**
* If you don't want to use mock-server * If you don't want to use mock-server
* you want to use mockjs for request interception * you want to use MockJs for mock api
* you can execute: * you can execute: mockXHR()
* *
* import { mockXHR } from '../mock' * Currently MockJs will be used in the production environment,
* mockXHR() * please remove it before going online! ! !
*/ */
import { mockXHR } from '../mock'
if (process.env.NODE_ENV === 'production') {
mockXHR()
}
// set ElementUI lang to EN // set ElementUI lang to EN
Vue.use(ElementUI, { locale }) Vue.use(ElementUI, { locale })
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或