2.地图服务整合,新增腾讯地图接入功能 3.信息查询模块升级,实现详情页同步适配(含手机端) 4.接口数据优化,同步调整页面图片展示效果 5.文章内容扩容,提升页面视觉展示效果 6.顶部导航栏优化,实现PC端与手机端自适应调整
40 lines
765 B
TypeScript
40 lines
765 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
import { defineNuxtConfig } from 'nuxt/config'
|
|
|
|
export default defineNuxtConfig({
|
|
app: {
|
|
baseURL: '/',
|
|
},
|
|
nitro: {
|
|
routeRules: {
|
|
'/**': { trailingSlash: false }
|
|
}
|
|
},
|
|
ssr: false,
|
|
css: [
|
|
'swiper/css',
|
|
'swiper/css/mousewheel',
|
|
'@/assets/css/common.scss'
|
|
],
|
|
devtools: { enabled: true },
|
|
|
|
postcss: {
|
|
plugins: {
|
|
autoprefixer: {},
|
|
tailwindcss: {},
|
|
},
|
|
},
|
|
modules: ['@pinia/nuxt', 'nuxt-icons'],
|
|
compatibilityDate: '2025-03-12',
|
|
vite: {
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: "http://xysdwrmyy.cn/",
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}) |