File tree 2 files changed +31
-3
lines changed
2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8" >
3
+ <div class =" max-w-md w-full space-y-8" >
4
+ <div >
5
+ Part of the layout
6
+ </div >
7
+ <router-view ></router-view >
8
+ </div >
9
+ </div >
10
+ </template >
11
+
12
+ <script setup>
13
+ const {title } = defineProps ({
14
+ title: String
15
+ })
16
+ </script >
17
+
18
+ <style scoped>
19
+
20
+ </style >
Original file line number Diff line number Diff line change 1
1
import { createRouter , createWebHistory } from "vue-router" ;
2
+ import AppLayout from '../components/AppLayout.vue'
2
3
import Login from "../views/Login.vue" ;
3
4
import Dashboard from "../views/Dashboard.vue" ;
4
5
import RequestPassword from "../views/RequestPassword.vue" ;
5
6
import ResetPassword from "../views/ResetPassword.vue" ;
6
7
7
8
const routes = [
8
9
{
9
- path : '/' ,
10
- name : 'dashboard' ,
11
- component : Dashboard
10
+ path : '/app' ,
11
+ name : 'app' ,
12
+ component : AppLayout ,
13
+ children : [
14
+ {
15
+ path : 'dashboard' ,
16
+ name : 'app.dashboard' ,
17
+ component : Dashboard
18
+ }
19
+ ]
12
20
} ,
13
21
{
14
22
path : '/login' ,
You can’t perform that action at this time.
0 commit comments