Commit d97ea346febaf54dd963dea44b229a4d331d6cd3
Merge branch 'master' of http://39.108.227.113:8001/zhusen/canrud-nuxt-front
Showing
2 changed files
with
5 additions
and
5 deletions
nuxt.config.ts
... | ... | @@ -50,8 +50,8 @@ export default defineNuxtConfig({ |
50 | 50 | nitro: { |
51 | 51 | devProxy: { |
52 | 52 | "/shop": { |
53 | - target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
54 | - // target: "http://127.0.0.1:8002/shop", | |
53 | + //target: "http://47.89.254.121:8002/shop", // 线上代理地址 | |
54 | + target: "http://127.0.0.1:8002/shop", | |
55 | 55 | // target: process.env.BASE_URL || 'http://39.108.227.113:8002/shop', // 目标接口域名 |
56 | 56 | changeOrigin: true, // 表示是否跨域 |
57 | 57 | }, |
... | ... | @@ -65,8 +65,8 @@ export default defineNuxtConfig({ |
65 | 65 | // 该配置用于服务端请求转发 |
66 | 66 | routeRules: { |
67 | 67 | "/shop/**": { |
68 | - proxy: "http://47.89.254.121:8002/shop/**", | |
69 | - // proxy: "http://127.0.0.1:8002/shop/**", | |
68 | + //proxy: "http://47.89.254.121:8002/shop/**", | |
69 | + proxy: "http://127.0.0.1:8002/shop/**", | |
70 | 70 | // proxy: process.env.BASE_URL || 'http://39.108.227.113:8002/shop/**' |
71 | 71 | }, |
72 | 72 | ... | ... |
pages/products/index.vue