Add dedicated admin app component
This commit is contained in:
parent
f68f89e721
commit
5c98a21e1c
2
resources/js/app-admin.js
vendored
2
resources/js/app-admin.js
vendored
@ -11,7 +11,7 @@ axios.get('/api/auth')
|
|||||||
window.Vue = require('vue');
|
window.Vue = require('vue');
|
||||||
import router from './router-app-admin';
|
import router from './router-app-admin';
|
||||||
|
|
||||||
import App from './apps/App.vue'
|
import App from './apps/AppAdmin.vue'
|
||||||
|
|
||||||
// Create the Vue.js application
|
// Create the Vue.js application
|
||||||
const app = Vue.createApp(App);
|
const app = Vue.createApp(App);
|
||||||
|
|||||||
3
resources/js/apps/AppAdmin.vue
Normal file
3
resources/js/apps/AppAdmin.vue
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<template>
|
||||||
|
<router-view></router-view>
|
||||||
|
</template>
|
||||||
1
resources/js/router-app-admin.js
vendored
1
resources/js/router-app-admin.js
vendored
@ -4,6 +4,7 @@ import Home from './views/AdminHome.vue';
|
|||||||
|
|
||||||
import NotFound from './views/NotFound.vue';
|
import NotFound from './views/NotFound.vue';
|
||||||
|
|
||||||
|
// TODO: Change base url to be `/admin`
|
||||||
const routes = [
|
const routes = [
|
||||||
{ path: '/admin/', name: 'index', component: Home },
|
{ path: '/admin/', name: 'index', component: Home },
|
||||||
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
|
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user