Laravel + Vuejs, стиль отсутствует при перезагрузке пути дочернего маршрутизатора - PullRequest
0 голосов
/ 27 июня 2018

Когда я перемещаюсь по ссылкам (href), страница http://localhost:8080/user/profile работает, но затем, если я обновляю страницу (Ctrl + F5), она показывает содержимое, но стиль отсутствует. Есть идеи?

routes.js

{
    path: '/user',
    name: 'Dashboard',
    component: require('./components/pages/Dashboard'),
    meta: {
      requiresAuth: false
    },
    props: { bcName: "Dashboard" },
    children: [
        {
            path: 'profile',
            name: 'Profile',
            components: {
                mainarea: require('./components/pages/Profile'),
            }
        }

    ]
}

Usermain.vue

<template>
<!-- Content Column -->
<div class="col-lg-9 mb-4">
<router-view name="mainarea"> </router-view>
</div>
</template>

Dashboard.vue

<template>
    <!-- Content Row -->
    <div class="row">
        <user-sidebar></user-sidebar>
        <user-main></user-main>
    </div>
</template>

Profile.vue

<template>
    <div class="test">Profile page {{layout}}</div>
</template>
...