对接数据

This commit is contained in:
2025-10-24 15:45:38 +08:00
parent 672a2f4c90
commit d3375a347f
138 changed files with 16904 additions and 1026 deletions

View File

@ -8,6 +8,11 @@ export default {
ssr: true,
target: 'server',
server: {
host: '0.0.0.0', // 允许外部访问,默认是 localhost (127.0.0.1)
port: 3000 // 可选:指定端口号,默认是 3000
},
// publicPath: process.env.NUXT_ENV_PUBLIC_PATH || '/', //服务器资源路径是否有前缀
loading: false, //是否在路由切换或者asyncData/Fetch异步请求期间出现进度条 可自定义详情见https://v2.nuxt.com/docs/features/loading#loading
@ -51,7 +56,10 @@ export default {
css: [
'normalize.css/normalize.css', // 引入
'@/styles/index.scss', //引入全局样式
'@/styles/text.scss'
'@/styles/text.scss',
'@/styles/font.scss',
'@/styles/flex.scss',
'@/styles/article.scss',
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
@ -95,7 +103,7 @@ export default {
},
axios: {
baseURL: process.env.NUXT_ENV_BASE_API || 'https://api.example.com', // API 根地址
baseURL: process.env.NUXT_ENV_BASE_API || 'http://47.108.139.184:9062', // API 根地址
credentials: true, // 是否跨域请求时携带 cookie
timeout: 30000, // 请求超时时间ms
// proxy:true, //开启代理
@ -104,7 +112,7 @@ export default {
//代理
// proxy: {
// '/api': { // 需要转发代理的请求前缀
// target: 'http://localhost:3000', // 代理的目标地址
// target: 'http://app.topv100.com:10041', // 代理的目标地址
// pathRewrite: { '^/api/': '' }, // 重写路径:去掉 /api 前缀
// changeOrigin: true // 是否改变请求源
// },