0
我有_layout1.cshtml
Areas/Book/Views/Shared/_layout1.cshtml
和/Views/Shared/_layout.cshtml
。共享布局优先
地区/图书/浏览/首页/ Index.cshmtl:
@{
Layout = "~/Areas/Book/Views/Shared/_layout1.cshtml";
}
不知怎的,它剧照展现_layout1
内容根/Views/Shared
而不是在Areas/Book
有任何优先权当布局查看共享相同的名称?
确保布局路径正确。 Layout =“〜/ Areas/Truyen/Views/Shared/_layout1.cshtml”; –