feat:接口联调

This commit is contained in:
2026-07-21 11:09:17 +08:00
parent eea6319c41
commit 538194d8a5
39 changed files with 3553 additions and 3386 deletions
+16
View File
@@ -1,4 +1,12 @@
const officialApiProxyTarget = (process.env.NUXT_OFFICIAL_API_PROXY_TARGET || 'http://localhost:8080').replace(/\/$/, '')
export default defineNuxtConfig({
runtimeConfig: {
officialApiProxyTarget,
public: {
officialApiBase: process.env.NUXT_PUBLIC_OFFICIAL_API_BASE || '/api'
}
},
future: {
compatibilityVersion: 3
},
@@ -13,6 +21,14 @@ export default defineNuxtConfig({
}
}
},
nitro: {
devProxy: {
'/api': {
target: `${officialApiProxyTarget}/api`,
changeOrigin: true
}
}
},
app: {
head: {
title: '大马棒 · 云途全域 GEO',