| | |
| | | <script setup> |
| | | import {onMounted} from "vue"; |
| | | import { RouterView } from "vue-router"; |
| | | import changeTheme from "@/utils/changeTheme.js"; |
| | | |
| | | onMounted(()=>{ |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <RouterView /> |
| | | <div class="p-root"> |
| | | <RouterView /> |
| | | </div> |
| | | </template> |
| | | |
| | | <style scoped></style> |
| | | <style scoped> |
| | | .p-root { |
| | | height: 100%; |
| | | } |
| | | </style> |
| | |
| | | <script> |
| | | export default { |
| | | name: "AppMain" |
| | | } |
| | | <script setup> |
| | | import { RouterView } from "vue-router"; |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | <script> |
| | | <script setup> |
| | | import appMain from "@/layout/components/AppMain.vue"; |
| | | export default { |
| | | name: "LayoutIndex", |
| | | components: { |
| | | appMain |
| | | }, |
| | | data() { |
| | | return {} |
| | | }, |
| | | methods: { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <template> |
| | |
| | | import { createRouter, createWebHistory } from 'vue-router' |
| | | import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router' |
| | | import Layout from "@/layout/index.vue"; |
| | | |
| | | const router = createRouter({ |
| | | history: createWebHistory(import.meta.env.BASE_URL), |
| | | // history: createWebHistory(import.meta.env.BASE_URL), |
| | | history: createWebHashHistory(), |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | |
| | | vue(), |
| | | vueDevTools(), |
| | | ], |
| | | base: './', |
| | | resolve: { |
| | | alias: { |
| | | '@': fileURLToPath(new URL('./src', import.meta.url)) |