mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
Update router
This commit is contained in:
@@ -86,7 +86,8 @@
|
||||
<h3 class="title-twoline">{{ mode.title }}</h3>
|
||||
</div>
|
||||
<div class="container">
|
||||
<a href="#" class="line__btn">play <span class="line__btn--elm">></span></a>
|
||||
<!-- <a href="#" class="line__btn">play <span class="line__btn--elm">></span></a> -->
|
||||
<a href="#" @click="$router.push({ name: 'crash' })" class="line__btn">play <span class="line__btn--elm">></span></a>
|
||||
<img src="@/assets/icons-gamemodes/crush-icon.svg">
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||
import HomePage from "../pages/HomePage.vue";
|
||||
import ProfilePage from "@/pages/ProfilePage.vue";
|
||||
import SapergamePage from "@/pages/games-pages/SapergamePage.vue";
|
||||
import CrashGamePage from "@/pages/games-pages/CrashGamePage.vue";
|
||||
import SettingsPage from "@/pages/SettingsPage.vue"
|
||||
import AboutPage from "@/pages/AboutPage.vue"
|
||||
export default createRouter({
|
||||
@@ -11,6 +12,7 @@ export default createRouter({
|
||||
{ path: '/', component: HomePage, name: 'home' },
|
||||
{ path: '/profile', component: ProfilePage, name: 'profile' },
|
||||
{ path: '/game/saper', component: SapergamePage, name: 'saper' },
|
||||
{ path: '/game/crash', component: CrashGamePage, name: 'crash' },
|
||||
{ path: '/settings', component: SettingsPage, name: 'settings' },
|
||||
{ path: '/about', component: AboutPage, name: 'about' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user