perf[chore]: add mock.js to instead of easy-mock (#281)
This commit is contained in:
10
src/main.js
10
src/main.js
@@ -15,6 +15,16 @@ import router from './router'
|
||||
import '@/icons' // icon
|
||||
import '@/permission' // permission control
|
||||
|
||||
/**
|
||||
* This project originally used easy-mock to simulate data,
|
||||
* but its official service is very unstable,
|
||||
* and you can build your own service if you need it.
|
||||
* So here I use Mock.js for local emulation,
|
||||
* it will intercept your request, so you won't see the request in the network.
|
||||
* If you remove `../mock` it will automatically request easy-mock data.
|
||||
*/
|
||||
import '../mock' // simulation data
|
||||
|
||||
Vue.use(ElementUI, { locale })
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Reference in New Issue
Block a user