fix:删除不要的文件

This commit is contained in:
LAPTOP-MI\Lau-mi 2024-11-04 16:25:36 +08:00
parent 12c8ed581f
commit b9994a747a
7 changed files with 23 additions and 26 deletions

1
.gitignore vendored
View File

@ -14,6 +14,7 @@ dist-ssr
coverage
*.local
package-lock.json
stats.html
# Editor directories and files
.vscode/*

View File

@ -8,7 +8,7 @@ const { locale } = useElementPlusLocale(currentLocale)
</script>
<template>
<el-config-provider :locale="locale">
<el-config-provider :locale="locale" :message="{ max: 4 }">
<RouterView />
</el-config-provider>
</template>

View File

@ -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]

View File

@ -1,3 +0,0 @@
import Home from './src/Home.vue'
export { Home }

View File

@ -1,19 +0,0 @@
<script setup>
import { test } from '@/api/login'
test()
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
</script>
<template>
<div class="home">
home
</div>
</template>
<style lang="scss" scoped></style>

13
src/views/index.vue Normal file
View File

@ -0,0 +1,13 @@
<script setup>
</script>
<template>
<div class="indexPage">
index
</div>
</template>
<style lang='scss' scoped>
</style>

View File

@ -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'
}
}
}
}