yinbangzhong
2024-08-06 ae94ec741a29ed869c75c0f6e83798a8f2ce01d1
打包配置
2个文件已修改
25 ■■■■■ 已修改文件
config/vite.config.prod.ts 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/user.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/vite.config.prod.ts
@@ -14,6 +14,29 @@
      configArcoResolverPlugin(),
      configImageminPlugin(),
    ],
    server: {
      open: true, // 项目启动后,自动打开
      fs: {
        strict: true,
      },
      proxy: {
        '/base': {
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
        },
        '/api': {
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
        },
        '/api/v1': {
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
        },
      },
    },
    build: {
      rollupOptions: {
        output: {
src/api/user.ts
@@ -16,7 +16,7 @@
}
export function logout() {
  return axios.post<LoginRes>('/api/user/logout');
  return axios.post<LoginRes>('/base/logout');
}
export function getUserInfo() {