temp
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user