Explorar el Código

前端修改后端访问地址

liwei19941102 hace 2 años
padre
commit
65a0a15b2c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      ruoyi-ui-vue3/vite.config.js

+ 2 - 1
ruoyi-ui-vue3/vite.config.js

@@ -30,7 +30,8 @@ export default defineConfig(({ mode, command }) => {
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          target: 'http://localhost:8080',
+          // target: 'http://localhost:8080',
+          target: 'http://localhost:8088',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         }