总结component和components,routes和router出现场景

PS:总结component和components,routes和router出现场景:

1.component(单数):

a.在路由规则里出现过;在这里插入图片描述
b.在内置标签也出现过;在这里插入图片描述
c.全局组件注册也出现过;在这里插入图片描述

2.components(复数):

a.组件文件夹里出现过;在这里插入图片描述
b.局部注册时出现过;在这里插入图片描述

3.routes(路由规则):

a.写路由配置出现过;在这里插入图片描述

4.router(路由对象):

a.router文件夹出现过;在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaodi520520/article/details/88866427