mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-19 06:10:52 +08:00
feat(frontend): 添加前端页面
This commit is contained in:
50
frontend/nuxt.config.ts
Normal file
50
frontend/nuxt.config.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: false },
|
||||
|
||||
// 配置前端开发服务器端口
|
||||
devServer: {
|
||||
port: 3000
|
||||
},
|
||||
|
||||
// 配置API代理,解决跨域问题
|
||||
nitro: {
|
||||
devProxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8000',
|
||||
changeOrigin: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// 应用配置
|
||||
app: {
|
||||
head: {
|
||||
title: '微信数据库解密工具',
|
||||
meta: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ name: 'description', content: '微信4.x版本数据库解密工具' }
|
||||
]
|
||||
},
|
||||
pageTransition: { name: 'page', mode: 'out-in' }
|
||||
},
|
||||
|
||||
// 模块配置
|
||||
modules: [
|
||||
'@nuxtjs/tailwindcss',
|
||||
'@pinia/nuxt'
|
||||
],
|
||||
|
||||
// Tailwind配置
|
||||
tailwindcss: {
|
||||
cssPath: ['~/assets/css/tailwind.css', { injectPosition: "first" }],
|
||||
configPath: 'tailwind.config',
|
||||
exposeConfig: {
|
||||
level: 2
|
||||
},
|
||||
config: {},
|
||||
viewer: true
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user