提交 d634e2ae 编写于 作者: 花裤衩

fix: fixed require mock bug in production

上级 b57f2008
......@@ -28,9 +28,8 @@ import * as filters from './filters' // global filters
* please remove it before going online ! ! !
*/
if (process.env.NODE_ENV === 'production') {
import('../mock').then(({ mockXHR }) => {
mockXHR()
})
const { mockXHR } = require('../mock')
mockXHR()
}
Vue.use(Element, {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册