THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

fix: fixed require mock bug in production

i18n
花裤衩 1 month ago
parent
commit
255989138d
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main.js

+ 2
- 3
src/main.js View File

@@ -29,9 +29,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…
Cancel
Save