1 创建文件,打开命令cmd
2 命令:vue create router-pro
3 选择:Manually select features
4 选择:Router(按空格出现绿色米字符号选中)
5 选择:2.x
6 输入:n
7 选择:Eslint whith error prevention only
8 选择:Link on sare 9 选择:In dedicated config files
10 输入:y
11 输入:y
12 输入:cd router-pro
13 输入:npm run serve