mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
add change
This commit is contained in:
@@ -13,26 +13,20 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu__btn--settings">
|
||||
<a @click="SettingsPage=!SettingsPage" href="#"><img width="73" height="73" src="../assets/icons-menu/settings-icon.svg"></a>
|
||||
<a @click="$router.push({ name: 'settings' })" href="#"><img width="73" height="73" src="../assets/icons-menu/settings-icon.svg"></a>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
<settings-page v-if="SettingsPage"></settings-page>
|
||||
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
// import NotiicationwindowComponent from "@/components/NotiicationwindowComponent.vue";
|
||||
import '@/assets/css/ComponentsStyles/asidebar.css'
|
||||
import settingsPage from "@/pages/SettingsPage.vue";
|
||||
export default {
|
||||
name: 'AsideBar-Element',
|
||||
components: { settingsPage },
|
||||
data() {
|
||||
return {
|
||||
SettingsPage: false
|
||||
}
|
||||
},
|
||||
|
||||
// emits: ['animationchange'],
|
||||
methods: {
|
||||
ChangeAnimation() {
|
||||
|
||||
@@ -3,12 +3,13 @@ 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 settingsPage from "@/pages/SettingsPage.vue"
|
||||
export default createRouter({
|
||||
history: createWebHistory(),
|
||||
routes: [
|
||||
{ path: '/', component: HomePage, name: 'home' },
|
||||
{ path: '/profile', component: ProfilePage, name: 'profile' },
|
||||
{ path: '/game/saper', component: SapergamePage, name: 'saper' }
|
||||
{ path: '/game/saper', component: SapergamePage, name: 'saper' },
|
||||
{ path: '/ssetting', component: settingsPage, name: 'settings' },
|
||||
]
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user