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
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user