mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 11:18:42 +08:00
fix: fixed require mock bug in production
This commit is contained in:
parent
b57f2008bd
commit
d634e2ae2f
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user