Commit 755a959a38d9246729fe53563e0edb12dfe22a3c

Authored by boyang
1 parent cfb654e3

fix: bug修复

Showing 1 changed file with 13 additions and 13 deletions
vite.config.ts
... ... @@ -31,25 +31,25 @@ export default defineApplicationConfig({
31 31 },
32 32 '/basic-api/order': {
33 33 // target: 'http://localhost:18001',
34   - target: 'http://47.104.8.35:18001',
  34 + target: 'http://47.104.8.35:8000',
  35 + changeOrigin: true,
  36 + ws: true,
  37 + rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
  38 + },
  39 + '/basic-api/project': {
  40 + target: 'http://47.104.8.35:8000',
  41 + // target: 'http://localhost:18000',
  42 + // target: 'http://39.108.227.113:8000',
  43 + // target: 'http://localhost:8000',
  44 + // target: 'http://39.108.227.113:3000/mock/35',
  45 + // http://39.108.227.113:8000/order/erp/captcha/get_img_captcha_code
35 46 changeOrigin: true,
36 47 ws: true,
37 48 rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
38 49 },
39   - // '/basic-api/project': {
40   - // target: 'http://47.104.8.35:8000',
41   - // // target: 'http://localhost:18000',
42   - // // target: 'http://39.108.227.113:8000',
43   - // // target: 'http://localhost:8000',
44   - // // target: 'http://39.108.227.113:3000/mock/35',
45   - // // http://39.108.227.113:8000/order/erp/captcha/get_img_captcha_code
46   - // changeOrigin: true,
47   - // ws: true,
48   - // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
49   - // },
50 50 '/api/localStorage/upload': {
51 51 // target: 'http://localhost:18001',
52   - target: 'http://47.104.8.35:18001',
  52 + target: 'http://47.104.8.35:8000',
53 53 changeOrigin: true,
54 54 ws: true,
55 55 // rewrite: (path) => {
... ...