Files
WeChatDataAnalysis/frontend/nuxt.config.ts
T
2977094657 949990d125 feat(chat-edit-ui): 新增聊天编辑入口与修改记录页面
- 聊天右键菜单新增修改消息、字段编辑、恢复原消息、修复发送者、反转微信气泡位置

- 新增 /edits 页面,支持会话维度浏览修改记录与原/现对比

- 新增 EditedMessagePreview 组件复用聊天气泡样式

- 侧边栏新增修改记录入口

- useApi 增加 chat edits 相关接口,nuxt 配置支持可配置 API base

- 增加会话级反转消息位置前端显示开关(本地存储)
2026-02-22 11:56:28 +08:00

69 lines
1.7 KiB
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: false },
runtimeConfig: {
public: {
// Full API base, including `/api` when needed.
// Example: `NUXT_PUBLIC_API_BASE=http://127.0.0.1:8000/api`
apiBase: process.env.NUXT_PUBLIC_API_BASE || '/api',
},
},
// 配置前端开发服务器端口
devServer: {
port: 3000
},
// 配置API代理,解决跨域问题
nitro: {
devProxy: {
'/api': {
// `h3` strips the matched prefix (`/api`) before calling the middleware,
// so the proxy target must include `/api` to preserve backend routes.
target: 'http://127.0.0.1:8000/api',
changeOrigin: true
}
}
},
// 应用配置
app: {
head: {
title: '微信数据库解密工具',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '微信4.x版本数据库解密工具' }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/logo.png' },
{ rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css' }
]
}
},
// 模块配置
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt'
],
// 启用组件自动导入
components: [
{ path: '~/components', pathPrefix: false }
],
// Tailwind配置
tailwindcss: {
cssPath: ['~/assets/css/tailwind.css', { injectPosition: "first" }],
configPath: 'tailwind.config',
exposeConfig: {
level: 2
},
config: {},
viewer: true
}
})