liudong
2024-07-31 e8854aeed917f6461979b0ba35fc6c6fca2b849a
测试页面bug的修改
2个文件已修改
9 ■■■■■ 已修改文件
config/vite.config.dev.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/interceptor.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/vite.config.dev.ts
@@ -22,16 +22,16 @@
        },
        '/api': {
          // target: 'http://192.168.20.116:1080',
          target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          // target: 'http://192.168.20.158:8089',
          target: 'http://aiotlink.com:8189',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
        },
        '/api/v1': {
          // target: 'http://192.168.20.116:1080',
          target: 'http://192.168.20.158:8089',
          // target: 'http://aiotlink.com:8189',
          // target: 'http://192.168.20.158:8089',
          target: 'http://aiotlink.com:8189',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
src/api/interceptor.ts
@@ -41,6 +41,7 @@
      }
      config.headers.Authorization = `${authorization}`;
    }
    config.headers.Authorization = 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78'
    return config;
  },
  (error) => {