完成这个地址替换
This commit is contained in:
@@ -30,7 +30,7 @@ export default defineConfig({
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/newApi/api': {
|
||||
target: 'http://127.0.0.1:18080',
|
||||
target: 'http://api.aishufu.top:18080/',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/newApi/, ''),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user