Р
Size: a a a
Р
ПЯ
AD
ПЯ
ПЯ
ПЯ
ПЯ
ПЯ
А
import VueRouter from 'vue-router';—- сами роуты, и файл app.js — laravel
import Vue from 'vue';
Vue.use(VueRouter);
import ProfileComponent from "./components/ProfileComponent";
import DashboardComponent from "./components/DashboardComponent";
const routes = [
{
patch: 'lk',
component: DashboardComponent
}
];
export default new VueRouter({
mode: "history",
routes
});
import "./dashmix.app";
import router from "./router";
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
Vue.component('profile-component', require('./components/ProfileComponent.vue').default);
Vue.component('dashboard-component', require('./components/DashboardComponent.vue').default);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
// Vue.config.productionTip = false
// Vue.config.devtools = false
const app = new Vue({
el: '#app',
router,
});
Uncaught Error: [vue-router] "path" is required in a route configuration.
ПЯ