删除冗余代码

This commit is contained in:
ZtRXR 2023-08-30 14:59:20 +08:00
parent 4142aa3d0c
commit b4cae5b297
4 changed files with 3156 additions and 31 deletions

View File

@ -2,10 +2,15 @@
export default defineNuxtConfig({ export default defineNuxtConfig({
devtools: { enabled: true }, devtools: { enabled: true },
modules: [ modules: [
'@element-plus/nuxt' '@element-plus/nuxt',
// '@nuxt/content'
], ],
css: [ css: [
'element-plus/dist/index.css', 'element-plus/dist/index.css',
], ],
// nitro: {
// prerender: {
// routes: ['/sitemap.xml']
// }
// }
}) })

3170
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,8 +10,10 @@
}, },
"devDependencies": { "devDependencies": {
"@element-plus/nuxt": "^1.0.5", "@element-plus/nuxt": "^1.0.5",
"@nuxt/content": "^2.8.0",
"@nuxt/devtools": "latest", "@nuxt/devtools": "latest",
"nuxt": "^3.7.0" "nuxt": "^3.7.0",
"sitemap": "^7.1.1"
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "^2.1.0", "@element-plus/icons-vue": "^2.1.0",

View File

@ -1,8 +1,4 @@
import "reflect-metadata"
export default defineEventHandler((envent)=>{ export default defineEventHandler((envent)=>{
// @ts-ignore
const webName:string|undefined = envent.context.params.WebName
return { return {
api:'works' api:'works'
} }