提交 4ef07821 编写于 作者: P Pan

chore: use mockjs in production environment

上级 0bf339b6
......@@ -21,12 +21,16 @@ import * as filters from './filters' // global filters
/**
* 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()
}
Vue.use(Element, {
size: Cookies.get('size') || 'medium' // set element-ui default size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册