This commit is contained in:
2025-06-03 20:44:50 +08:00
parent 1eaf3e810e
commit 526370bb41
12 changed files with 421 additions and 245 deletions

View File

@@ -14,10 +14,10 @@ export default defineConfig({
port: 5678, // 自定义端口号,可选
strictPort: true, // 如果端口被占用则抛出错误而不是使用下一个可用端口
proxy: {
'/api/v1': {
target: 'https://www.tianyuancha.cn', // 本地接口地址
changeOrigin: true,
},
// '/api/v1': {
// target: 'https://www.tianyuancha.cn', // 本地接口地址
// changeOrigin: true,
// },
"/api/v1/chat": {
target: "https://www.tianyuancha.cn", // 本地接口地址
@@ -25,10 +25,10 @@ export default defineConfig({
// rewrite: (path) => path.replace(/^\/api\/v1\/chat/, '/chat')
},
// "/api/v1": {
// target: "https://6m4685017o.goho.co", // 本地接口地址
// changeOrigin: true,
// },
"/api/v1": {
target: "https://6m4685017o.goho.co", // 本地接口地址
changeOrigin: true,
},
},
},
plugins: [