Add dedicated admin app component

This commit is contained in:
Daniel_I_Am 2021-09-02 13:50:19 +02:00
parent f68f89e721
commit 5c98a21e1c
3 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -0,0 +1,3 @@
<template>
<router-view></router-view>
</template>

View File

@ -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 },