themeselection / materio-vuetify-vuejs-admin-template-free

Production Ready, Carefully Crafted, Extensive Vuetifty Free Admin Template 🤩
https://themeselection.com/demo/materio-vuetify-vuejs-admin-template-free/demo/
MIT License
791 stars 237 forks source link

SCSS and another templates not loading when change routes default page #21

Closed macieleustaquio closed 1 year ago

macieleustaquio commented 1 year ago

Steps to reproduce

import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ // ...setupLayouts(routes), { path: "/", name: "login", component: () => import ("@/layouts/components/Login.vue") }

], scrollBehavior() { return { top: 0 } }, })

export default router

What is expected?

I expected the login page to load the same as the template

What is actually happening?

When I change the theme's default homepage to the login page, the template and scss are not loaded.

Additional data

jd-solanki commented 1 year ago

Styles are applied when layout classes are present as written here: https://github.com/themeselection/materio-vuetify-vuejs-admin-template-free/blob/main/typescript-version/src/layouts/blank.vue#L11

Please wrap your login page with those classes (most probably .layout-blank) and it should work as expected.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you for raising the concern.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as closed because it has no recent activity.