perf[chore]: add mock.js to instead of easy-mock (#281)

This commit is contained in:
花裤衩
2019-02-20 13:16:24 +08:00
committed by GitHub
parent 01018ee1f9
commit 5d82985a76
7 changed files with 136 additions and 1 deletions

View File

@@ -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

View File

@@ -17,7 +17,7 @@ import Layout from '../views/layout/Layout'
* redirect: noredirect if `redirect:noredirect` will no redirect in the breadcrumb
* name:'router-name' the name is used by <keep-alive> (must set!!!)
* meta : {
title: 'title' the name show in submenu and breadcrumb (recommend set)
title: 'title' the name show in subMenu and breadcrumb (recommend set)
icon: 'svg-name' the icon show in the sidebar
breadcrumb: false if false, the item will hidden in breadcrumb(default is true)
}