vue2 二级路由会变成空白,但是不报错,真的不知道为什么,求助

image.png
image.png

{
    path: "/user/:id",
    name: "User",
    component: User,
    Children: [
      { path: "um", component: UM },
      { path: "ud", component: UD },
    ],
  },
<template>
  <div>
    <div>用户信息:</div>
    <div>用户id:{{ this.user.id }}</div>
    <div>用户名称:{{ this.user.name }}</div>
    <div>用户性别:{{ this.user.sex }}</div>
    <div>用户邮箱:{{ this.user.email }}</div>
    <router-view></router-view>
  </div>
</template>
阅读 2.1k
1 个回答

children 打成大写字母?

推荐问题