Compare commits
1 Commits
857f46ad17
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 6d725b51cb |
@@ -27,7 +27,7 @@ export default defineConfig({
|
|||||||
port: 3000,
|
port: 3000,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://127.0.0.1:18082',
|
target: 'http://127.0.0.1:8082',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
ws: true,
|
ws: true,
|
||||||
@@ -35,7 +35,7 @@ export default defineConfig({
|
|||||||
configure: (proxy, options) => {
|
configure: (proxy, options) => {
|
||||||
proxy.on('error', (err, req, res) => {
|
proxy.on('error', (err, req, res) => {
|
||||||
console.error('代理错误:', err.message)
|
console.error('代理错误:', err.message)
|
||||||
console.error('请确保后端服务已启动在 http://127.0.0.1:18082')
|
console.error('请确保后端服务已启动在 http://127.0.0.1:8082')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user