add new pages
This commit is contained in:
parent
1245d98552
commit
0742f742d9
11
src/components/EditorWindow.vue
Normal file
11
src/components/EditorWindow.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p>Я редактор сценариев</p>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
11
src/components/GamesWindow.vue
Normal file
11
src/components/GamesWindow.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p>Я каталог игр</p>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
@ -1,5 +1,7 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import EditorView from '../views/EditorView.vue'
|
||||
import GamesView from '../views/GamesView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
@ -9,6 +11,16 @@ const router = createRouter({
|
||||
name: 'home',
|
||||
component: HomeView,
|
||||
},
|
||||
{
|
||||
path: '/editor',
|
||||
name: 'editor',
|
||||
component: EditorView,
|
||||
},
|
||||
{
|
||||
path: '/games',
|
||||
name: 'games',
|
||||
component: GamesView,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
|
7
src/views/EditorView.vue
Normal file
7
src/views/EditorView.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import EditorWindow from '../components/EditorWindow.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EditorWindow />
|
||||
</template>
|
7
src/views/GamesView.vue
Normal file
7
src/views/GamesView.vue
Normal file
@ -0,0 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import GamesWindow from '../components/GamesWindow.vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<GamesWindow />
|
||||
</template>
|
Loading…
x
Reference in New Issue
Block a user