refactor: change mock files to commonjs (#3246)

This commit is contained in:
花裤衩
2020-06-11 11:40:53 +08:00
committed by GitHub
parent 0bf61aac53
commit d3bd933a8e
9 changed files with 74 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import Mock from 'mockjs'
const Mock = require('mockjs')
const NameList = []
const count = 100
@@ -10,7 +10,7 @@ for (let i = 0; i < count; i++) {
}
NameList.push({ name: 'mock-Pan' })
export default [
module.exports = [
// username search
{
url: '/vue-element-admin/search/user',