web-config修改
This commit is contained in:
@@ -63,7 +63,7 @@ export default defineConfig({
|
||||
// 代理配置
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8081/schoolNewsServ',
|
||||
target: 'http://127.0.0.1:8081',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
configure: (proxy, options) => {
|
||||
|
||||
Reference in New Issue
Block a user