diff --git a/.gitignore b/.gitignore
index 692d9a9..bb741f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,7 @@ dist-ssr
coverage
*.local
package-lock.json
+stats.html
# Editor directories and files
.vscode/*
diff --git a/src/App.vue b/src/App.vue
index c7f4eec..4c0c4c0 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -8,7 +8,7 @@ const { locale } = useElementPlusLocale(currentLocale)
-
+
diff --git a/src/router/routes/basic.js b/src/router/routes/basic.js
index 21ba08a..df4eea9 100644
--- a/src/router/routes/basic.js
+++ b/src/router/routes/basic.js
@@ -1,12 +1,12 @@
-import { Home } from '@/views/Home'
+import index from '@/views/index.vue'
const homeRoute = {
path: '/',
- name: 'home',
+ name: 'index',
meta: {
title: '首页'
},
- component: Home
+ component: index
}
const basicRoute = [homeRoute]
diff --git a/src/views/Home/index.js b/src/views/Home/index.js
deleted file mode 100644
index d42a8ac..0000000
--- a/src/views/Home/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import Home from './src/Home.vue'
-
-export { Home }
diff --git a/src/views/Home/src/Home.vue b/src/views/Home/src/Home.vue
deleted file mode 100644
index b7f946b..0000000
--- a/src/views/Home/src/Home.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- home
-
-
-
-
diff --git a/src/views/index.vue b/src/views/index.vue
new file mode 100644
index 0000000..8db6bf0
--- /dev/null
+++ b/src/views/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+ index
+
+
+
+
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
index 4d8357d..8515fe3 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -73,6 +73,11 @@ export default defineConfig(({ mode }) => {
return 'img/[name]-[hash].[ext]'
}
return 'assets/[name]-[hash].[ext]'
+ },
+ manualChunks(modulePath) {
+ if (modulePath.includes('node_module')) {
+ return 'vendor'
+ }
}
}
}