|  |  | @ -3,6 +3,9 @@ import VueRouter from "vue-router"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | // 引入组件
 |  |  |  | // 引入组件
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import test from "~/pages/test"; |  |  |  | import test from "~/pages/test"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import teacher from "~/pages/teacher/index"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import personal from "~/pages/teacher/personal"; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import personalMessage from "~/components/personalMessage"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | // 要告诉 vue 使用 vueRouter
 |  |  |  | // 要告诉 vue 使用 vueRouter
 | 
			
		
	
		
		
			
				
					
					|  |  |  | Vue.use(VueRouter); |  |  |  | Vue.use(VueRouter); | 
			
		
	
	
		
		
			
				
					|  |  | @ -15,6 +18,20 @@ const routes = [ | 
			
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |         path: "/home", |  |  |  |         path: "/home", | 
			
		
	
		
		
			
				
					
					|  |  |  |         component: test |  |  |  |         component: test | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         path: "/teacher", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         component: teacher, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         children: [ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 path: '', | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 component: test | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 path: 'personal', | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 component: personal | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         ] | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | ] |  |  |  | ] | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |