fix:删除不要的文件
This commit is contained in:
parent
12c8ed581f
commit
b9994a747a
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,6 +14,7 @@ dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
package-lock.json
|
||||
stats.html
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
import Home from './src/Home.vue'
|
||||
|
||||
export { Home }
|
||||
@ -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
13
src/views/index.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="indexPage">
|
||||
index
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
|
||||
</style>
|
||||
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user