he wei
2025-03-17 280792acd3dae2f6f04e08e51dcad91e8ea5562c
U 打包修改
5个文件已修改
38 ■■■■■ 已修改文件
src/App.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/AppMain.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/index.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -1,5 +1,6 @@
<script setup>
import {onMounted} from "vue";
import { RouterView } from "vue-router";
import changeTheme from "@/utils/changeTheme.js";
onMounted(()=>{
@@ -8,7 +9,13 @@
</script>
<template>
  <div class="p-root">
  <RouterView />
  </div>
</template>
<style scoped></style>
<style scoped>
.p-root {
  height: 100%;
}
</style>
src/layout/components/AppMain.vue
@@ -1,7 +1,5 @@
<script>
export default {
  name: "AppMain"
}
<script setup>
import { RouterView } from "vue-router";
</script>
<template>
src/layout/index.vue
@@ -1,20 +1,5 @@
<script>
<script setup>
import appMain from "@/layout/components/AppMain.vue";
export default {
  name: "LayoutIndex",
  components: {
    appMain
  },
  data() {
    return {}
  },
  methods: {
  },
  mounted() {
  }
}
</script>
<template>
src/router/index.js
@@ -1,8 +1,9 @@
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: '/',
vite.config.js
@@ -10,6 +10,7 @@
    vue(),
    vueDevTools(),
  ],
  base: './',
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))