Эх сурвалжийг харах

前端修改后端访问地址

liwei19941102 2 жил өмнө
parent
commit
65a0a15b2c

+ 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/, '')
         }