jialh
2025-06-10 afedab89fbdf1b7000e866e47d4762234c044813
备份
2个文件已修改
9 ■■■■■ 已修改文件
src/pages/ExternalBot.tsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.ts 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/ExternalBot.tsx
@@ -311,7 +311,6 @@
  const hideModal = () => {
    setOpen(false);
  };
  const [uploadedFileId, setUploadedFileId] = useState<string>("");
  const [uploadedFileIds, setUploadedFileIds] = useState<string[]>([]); // 改为数组存储
  const [botTypeId, setBotTypeId] = useState<number>(0); // 新增 botTypeId 状态
vite.config.ts
@@ -16,12 +16,12 @@
    server: {
        proxy: {
            '^/api': {
                target: 'http://192.168.31.110:8080/',
                // target: 'http://47.92.122.77:8080/',
                // target: 'http://192.168.31.110:8080/',
                target: 'http://47.92.122.77:8080/',
            },
            '^/attachment/': {
                // target: 'http://47.92.122.77:8080/static/',
                target: 'http://192.168.31.110:8080/static/',
                target: 'http://47.92.122.77:8080/static/',
                // target: 'http://192.168.31.110:8080/static/',
            },
        },
    },