fix(@vben/common-ui): 更新下载链接和代理配置

This commit is contained in:
Kven 2025-05-19 11:42:43 +08:00
parent 97593b7dc1
commit 4106c97d53
2 changed files with 3 additions and 3 deletions
apps/web-antd
packages/effects/common-ui/src/ui/spider

View File

@ -10,8 +10,8 @@ export default defineConfig(async () => {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
// mock代理目标地址
target: 'http://localhost:8081/api',
// target: 'http://43.139.10.64:8082/api',
// target: 'http://localhost:8081/api',
target: 'http://43.139.10.64:8082/api',
// target: 'http://192.168.3.238:8081/api',
ws: true,
},

View File

@ -182,7 +182,7 @@ const startPolling = async () => {
style: { marginLeft: '10px' },
onClick: () => {
const link = document.createElement('a');
link.href = download_url;
link.href = `http://47.112.173.8:6806${download_url}`;
link.download = fetchResult.value;
document.body.append(link);
link.click();